Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current version of gitsigns causes CPU spikes on navigation #155

Closed
callmeBuzzard opened this issue Sep 29, 2023 · 1 comment
Closed

Current version of gitsigns causes CPU spikes on navigation #155

callmeBuzzard opened this issue Sep 29, 2023 · 1 comment

Comments

@callmeBuzzard
Copy link

This affects the version of gitsigns currently in use by the repo:
commit = "ec4742a7eebf68bec663041d359b95637242b5c3".

Navigation would spike cpu usage and lock up the entire desktop for several seconds. The problem was gitsigns running one git-blame process per line navigation. A discussion of the problem is here:

lewis6991/gitsigns.nvim#878

It has been fixed to trigger on edit instead of navigation. Apparently further optimizations are planned but this stopped the cpu spikes for me.

If anyone else is being affected by this, you can go into your gitsigns.lua and comment out the commit property and then run :Lazy or restart nvim to update it. If that works and you want to keep it, just lock the commit property to the new hash.

@Rishabh672003
Copy link
Member

i will update the plugin, thanks for the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants