ctrlpvim / ctrlp.vim

Active fork of kien/ctrlp.vim—Fuzzy file, buffer, mru, tag, etc finder.
ctrlpvim.github.com/ctrlp.vim
Other
5.58k stars 260 forks source link

Optimize s:Render() #594

Closed mattn closed 2 years ago

mattn commented 2 years ago

As far as I can see the code of s:Render(), many lines should be possible to be omitted over the height.

@tacahiroy Could you please review this?

If my analysis is correct, we will get great performance improvements. Below is demo under the directory which have 155732 files.

screenshot

tacahiroy commented 2 years ago

Sure, will do

mattn commented 2 years ago

Ah, sorry. This is wrong. Can not navigate with cursor up/down more than the number over the height.