Re: [PATCH/RFC v5 1/1] more cache effective symlink/directory detection
Junio C Hamano <gitster@pobox.com> writes:
Show 19 quoted lines
> René Scharfe <rene.scharfe@lsrfire.ath.cx> writes:
>
>> Kjetil Barvik schrieb:
>>> - Also introduce a 'void clear_lstat_cache(void)' function, which
>>> should be used to clean the cache before usage. If for instance,
>>> you have changed the types of directories which should be cached,
>>> the cache could contain a path which was not wanted.
>>
>> Is it possible to make the cache detect these situations automatically
>> by saving track_flags along with the cache contents? Not having to
>> clear the cache manually would be a major feature.
>
>> Also, it's probably worth to split this patch up again. First switching
>> to your improved implementation of has_symlink_leading_path(), then
>> introducing has_symlink_or_noent_leading_path() and finally adding
>> LSTAT_FULLPATH and the fourth parameter of lstat_cache() etc. and using
>> this feature in entry.c seems like a nice incremental progression.
>
> Both are reasonable suggestions. Thanks.
Ok! Thanks for comments! Version 6 will follow shortly!
-- kjetil