fourjay / vcscommand

Automatically exported from code.google.com/p/vcscommand
0 stars 0 forks source link

Loading plugin causes slow startup #101

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
Using --startuptime, vcscommand is shown to be the slowest loading plugin by a 
large margin. Here are the results I got:

6362.020  608.218  608.218: sourcing 
/Users/blue/.vim/bundle/vcscommand/plugin/vcscommand.vim
6422.611  671.285  063.067: sourcing 
/Users/blue/.vim/bundle/vcscommand/plugin/vcsbzr.vim
6423.472  000.645  000.645: sourcing 
/Users/blue/.vim/bundle/vcscommand/plugin/vcscommand.vim
6472.687  048.671  048.671: sourcing 
/Users/blue/.vim/bundle/vcscommand/plugin/vcscvs.vim
6512.245  002.041  002.041: sourcing 
/Users/blue/.vim/bundle/vcscommand/plugin/vcsgit.vim
6680.849  168.042  168.042: sourcing 
/Users/blue/.vim/bundle/vcscommand/plugin/vcshg.vim
6847.292  103.154  103.154: sourcing 
/Users/blue/.vim/bundle/vcscommand/plugin/vcssvk.vim
6913.018  002.024  002.024: sourcing 
/Users/blue/.vim/bundle/vcscommand/plugin/vcssvn.vim

Is it possible to speed this up by delaying as much logic as possible until the 
first time a vcs function is called?

Original issue reported on code.google.com by b...@atmaildot.com on 26 Sep 2012 at 7:56

GoogleCodeExporter commented 8 years ago

Original comment by bob.hies...@gmail.com on 12 Apr 2013 at 2:58

GoogleCodeExporter commented 8 years ago
It's possible to delay some definitions.  Most users of the plugin, however, 
will need the logic defined as soon as they're loading the first file they're 
editing in order to display VCS information for that file.

Additionally, changing to using autoloading would break any scripts that 
currently depend on the functionality provided by the plugin, so I'd be wary to 
do that.

The time to source the files is way out of whack with what I see even on older 
hardware.  What is your environment?  It may be that the time can be improved 
by avoiding whatever is taking so long.

Could you please provide the entire startuptime profile file?

Original comment by bob.hies...@gmail.com on 12 Apr 2013 at 4:49

GoogleCodeExporter commented 8 years ago
Closing due to lack of response.

Original comment by bob.hies...@gmail.com on 25 Apr 2013 at 7:41