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

Performance issues with big files in the repository #881

Closed
dominx99 opened this issue Jan 25, 2024 · 3 comments
Closed

Performance issues with big files in the repository #881

dominx99 opened this issue Jan 25, 2024 · 3 comments

Comments

@dominx99
Copy link

What is the latest commit SHA in your installed vim-gitgutter?

67ef116

What vim/nvim version are you on?

Neovim v0.9.5

I am experiencing performance issues.
Every time I open a file I have to wait couple of seconds (10-15)

I found that this process causes this:

git -c core.safecrlf=false diff --diff-filter=R --name-status

which is called by this plugin and it lasts so long because I have one big file in the repo (database) and I use git-lfs.

@airblade
Copy link
Owner

airblade commented Jan 25, 2024

I've never used git-lfs but isn't it supposed to make normal git operations not be slowed down by a big file?

I think the right answer will be a way to exclude lfs-managed (or binary) files from git-diff, but I'm not sure how to do that.

It's a git problem rather than a plugin problem, I believe.

@dominx99
Copy link
Author

dominx99 commented Jan 26, 2024

Thank you for hint

git update-index --assume-unchanged <filename>

worked for me

@airblade
Copy link
Owner

Thanks for posting your solution!

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