-
Notifications
You must be signed in to change notification settings - Fork 6
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
bug: load_buffers = true is slow #39
Comments
The reason that it is the default is because it produces better highlighting and, while it takes longer than not loading the buffers, doesn't block your UI thread. It may take some time for all lines to get highlighted, but you should still be able to use Neovim more-or-less as usual while that is ongoing. If that is not your experience, let me know and we'll try to resolve that. I agree that if the default settings should not cause Neovim to freeze, but it's not clear from this report if that is happening. |
With load_buffer = true, blocking interface. quicker_load_buffer_true_slow.mp4versus load_buffer = false: quicker_load_buffer_false_fast.mp4I have no idea but maybe it's because it's opening big files. In any case, you can see that's indeed blocking the interface. |
Oh wow...that much lag for only ~300 results? My best guess is that you have one or two massive files that cause 10+ seconds of lag on load. I have it set to only load buffers in ~50ms chunks, but that doesn't help if loading one buffer blows out that budget. I think...this is a good enough reason to change the defaults. |
Neovim version (nvim -v)
0.10.3
Operating system/version
Linux
Describe the bug
It is suggested in the help, but the default
highlight = { load_buffers = true }
makes impossible to grep into quickfix.I wonder if it would be better to turn it off by default?
My test, grepping a word with 300 matches from multiple files, with
load_buffers = true
, it takes seconds, with the optionfalse
is instant.What is the severity of this bug?
minor (annoyance)
Steps To Reproduce
Expected Behavior
Maybe this is expected, I just "complain" about the default value. Maybe it should be off.
Minimal example file
No response
Minimal init.lua
Additional context
No response
The text was updated successfully, but these errors were encountered: