mileszs / ack.vim

Vim plugin for the Perl module / CLI script 'ack'
Other
3.08k stars 396 forks source link

ack.vim causing slow vim startup #113

Closed axelson closed 10 years ago

axelson commented 10 years ago

This issue is multi-faceted. The overall issue is that loading ack.vim is causing my vim startup speed to exceed 1.5 seconds which is unacceptably slow for me. The cause of this is that ack.vim runs 'ack --version' on startup:

https://github.com/mileszs/ack.vim/commit/6b5a76f870be7118cdfed7d4f2e93ebcc680762b

Of course there is probably an issue with ack/perl that is causing 'ack --version' to take 1.5 seconds. But in my opinion Ack.vim should not be blocking vim startup while it is running an external command. Instead that should be done in a thread if possible or merely upon the first time that Ack.vim is called.

As a workaround I'm just going to switch to Ag instead of ack. https://github.com/mileszs/ack.vim/issues/57

kassio commented 10 years ago

Thank's for reporting. I'll remove support for ack 1.x on v1.0, I did some tests and this line it's really slow!