Closed hyiltiz closed 8 years ago
Syntastic is a "heavy" plugin. It isn't optimised for quick startup. For historic reasons, full initialisation happens at Vim startup, rather than at the first use. From your data (which is very similar to what I get on my machine), syntastic takes 29 ms to load. You know what takes 46 ms? Opening buffers:
357.768 045.841: opening buffers
Significantly reducing startup time, either by moving as much of the core as possible to autoload
, or by optimising the startup sequence, would be possible, but difficult. I'd venture to guess most people won't really care about reducing those 29 ms to, say, a third of that. But, if you want to do it, enable profiling, and post a PR when you have everything working.
Installing
syntastic
usingvim-plug
as default (Plug 'scrooloose/syntastic'
), I found thatsyntastic
is taking significantly longer to startup and affecting vim startup time compared to other plugins. I would imagine thatsyntastic
would not delay that much since there is actually no file to analyze at that point, and analyzing.vimrc
(if that is the case) during startup does not really make sense.Here is a nice plot for it, and you can see the data for this plot along with original raw data below. (analyzed using https://github.com/hyiltiz/vim-plugins-profile).