kien / ctrlp.vim

Fuzzy file, buffer, mru, tag, etc finder.
kien.github.com/ctrlp.vim
7.26k stars 676 forks source link

Caching not optimized #713

Open ppowalla opened 8 years ago

ppowalla commented 8 years ago

Hi,

It seems to me, that the caching might need improvement. Let's assume I am in the following path:

my/dir/

and am executing ctrlp. In that case this directory gets indexed, which is fine. Now I am navigating into a sub directory:

my/dir/first/

executing ctrlp again forces the plugin to reindex this directory, although the content is already there in the cache file for the parent directory. I am not aware of the current implementation, but my feeling is, that the directory gets scanned again and the cache file for the parent directory is not used. Please correct me if I am wrong.

Very nice plugin by the way :)

Bye