Re: [PATCH 3/3] Avoid doing extra 'lstat()'s for d_type if we have an up-to-date cache entry
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Jul 9, 2009, 08:18 UTC
- Message-ID
- <7vskh646bw.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <alpine.LFD.2.01.0907081942380.3352@localhost.localdomain>
Linus Torvalds <torvalds@linux-foundation.org> writes:
Show 6 quoted lines
> From: Linus Torvalds <torvalds@linux-foundation.org> > Date: Wed, 8 Jul 2009 19:31:49 -0700 > Subject: [PATCH 3/3] Avoid doing extra 'lstat()'s for d_type if we have an up-to-date cache entry > > On filesystems without d_type, we can look at the cache entry first. > Doing an lstat() can be expensive.
Thanks.
I was wondering if we could also say that D exists as a directory when we know there is D/F in the index and is up to date.