Tuesday, August 20, 2013

Re: Vim takes a lot of time "opening buffers" when opening a file for the first time

Am 20.08.2013 16:24, schrieb Ben Fritz:
> On Tuesday, August 20, 2013 1:51:06 AM UTC-5, florian...@rwth-aachen.de wrote:
>> SOLVED!
>>
>> Thank you all four your help! VIMs in-house profiling function (this was new to me) helped to identify the bottleneck:
>>
>> FUNCTIONS SORTED ON TOTAL TIME
>> count total (s) self (s) function
>> 1 1.911840 0.000174 sy#start()
>> 1 1.911471 0.000904 sy#repo#detect()
>> 2 0.440662 0.000075 tagbar#currenttag()
>> 2 0.440501 0.000184 <SNR>166_Init()
>> 3 0.376236 0.000812 <SNR>166_ExecuteCtags()
>> 1 0.243657 0.000271 sy#repo#get_diff_bzr()
>> 1 0.243428 0.000240 sy#repo#get_diff_rcs()
>> 1 0.233447 0.000282 sy#repo#get_diff_accurev()
>> 1 0.223392 0.000288 sy#repo#get_diff_darcs()
>> 1 0.223378 0.000288 sy#repo#get_diff_fossil()
>> 1 0.203176 0.000270 sy#repo#get_diff_hg()
>> 1 0.185362 0.000189 <SNR>166_AutoUpdate()
>> 1 0.185017 0.008813 <SNR>166_ProcessFile()
>> 1 0.152811 0.000268 sy#repo#get_diff_svn()
>> 1 0.133778 0.000876 <SNR>166_GetSupportedFiletypes()
>> 1 0.132605 0.000119 GitGutter()
>> 1 0.132568 0.000286 sy#repo#get_diff_cvs()
>>
>> All functions starting with sy# belong to the signify plugin (https://github.com/mhinz/vim-signify).
> The signify plugin help encourages you to set g:signify_vcs_list to the list of version control systems you actually use. This will cut down on your startup time significantly, since signify won't need to query for the existence of every supported version control system.
>
> I see a GitGutter() function. Do you have GitGutter *and* signify installed? IIUC signify does everything GitGutter does, plus supports more version control systems. But maybe GitGutter has some extra features for git?
>
Yes Fritz, you indentified the problem very well. Setting the VCS list
helped. And I removed gitgutter as well.

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: