atom-community / autocomplete-paths

Autocomplete Paths for Atom
MIT License
151 stars 62 forks source link

Faster autocomplete list showing #257

Open aminya opened 3 years ago

aminya commented 3 years ago

WIP

Zadeh supports adding all the files to its cache using ArrayFilterer instead of calling filter every time. If we use ArrayFilterer searching will be faster https://github.com/atom-community/zadeh#arrayfilterer

I'm also inclined to add the things like prefix (which is used as relativeToPath here) or extention filtering to Zadeh.

Benchmarks to test:

Repo DefinitelyTyped

Other benchmarks:

Top to bottom image

Bottom to top ![image](https://user-images.githubusercontent.com/16418197/110018533-ffc29380-7cec-11eb-92ab-b8f8558a5592.png) ![image](https://user-images.githubusercontent.com/16418197/110018830-5a5bef80-7ced-11eb-8fa2-3b1b895f4061.png) ![image](https://user-images.githubusercontent.com/16418197/110018927-78295480-7ced-11eb-876c-0327163e91b6.png) ![image](https://user-images.githubusercontent.com/16418197/110019058-9ee78b00-7ced-11eb-8f84-ea7239fcc17e.png)