Closed benwoodward closed 5 years ago
Which commit did you upgrade from?
I can't see why gitgutter#async#execute()
would be slow; basically all it does is call jobstart()
.
What's the function's profile?
@benwoodward Any updates on this?
What is your &updatetime
?
Also, where specifically do you see a performance degradation? Is there a lag between typing a key and it having an effect on screen? Or are the signs taking longer to appear than you would expect?
I found a problem with gitgutter#async#execute() too, maybe related?
Recently my neovim starts very slowly, taking 10s or more. It turns out the root cause is that the gitgutter#utility#set_repo_path tries to call the git command asyncly (to get the path of the opened file), but the command takes too much time to complete, and gitgutter would not allow me to enter vim until the command returns error or something.
Strangely, if I use plain vim instead, it will just take at most 1s to complete the async call to git command. I'm not sure if this is a neovim bug or there's something wrong with the git command.
Ah, that’s #589.
On 8 Mar 2019, at 19:46, Zhuocheng Ding notifications@github.com wrote:
I found a problem with gitgutter#async#execute() too, maybe related?
Recently my neovim starts very slowly, taking 10s or more. It turns out the root cause is that the gitgutter#utility#set_repo_path tries to call the git command asyncly (to get the path of the opened file), but the command takes too much time to complete, and gitgutter would not allow me to enter vim until the command returns error.
Strangely, if I use plain vim instead, it will just take at most 1s to complete the async call to git command. I'm not sure if this is a neovim bug or there's something wrong with the git command.
— You are receiving this because you commented. Reply to this email directly, view it on GitHub, or mute the thread.
@tcbbd This is fixed in 064a3d6.
@benwoodward Please could you upgrade vim-gitgutter and let me know if this is still a problem?
Closing because I think this is fixed. Let me know if not.
78db200b12d5322f43ac518adc8da0d90864a552
n/a
n/a
I've noticed a performance degradation since updating.
gitgutter#async#execute()
seems to be the source?.init.vim