vim-erlang / vim-erlang-tags

Generate Vim tags for Erlang files
https://vim-erlang.github.io
Other
61 stars 23 forks source link

Put functions not needed at startup under autoload #41

Closed slarwise closed 4 years ago

slarwise commented 4 years ago

Done to decrease startup time

hcs42 commented 4 years ago

Thanks!

Out of curiosity: have you performed any measurements about how much this decreases startup time?

slarwise commented 4 years ago

Awesome, thanks 😃

At work I had to use Vim 7.4 on a pretty slow computer and sourcing plugin/vim-erlang-tags.vim took about 300 ms. After moving the functions to autoload it took less than 1 ms to source. So it was nice when I was gonna use Vim for something else than Erlang.

On my macbook pro 2017 with a newer vim version the difference is not as noticeable. For neovim 0.4.3 it took about 20 ms without autoload and 0.06 ms with and about the same for vim 8.2.

hcs42 commented 4 years ago

Thanks for the info :)

slarwise commented 4 years ago

No problem, thanks for the awesome plugin :)