-
Notifications
You must be signed in to change notification settings - Fork 82
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
Significant slowdown #61
Comments
Hi @krid78 , The autocmd execute whenever a file is saved. This means that when you save the file the cursor will take sometime before returning. Cheers, |
Yeah, unfortunately this is a side effect of the way this plugin is currently stripping (and to a lesser extent highlighting) whitespace. I have some ideas around improving out-of-the-box performance (only strip edited lines, don't highlight by default, etc), so I'm leaving this open and tagging this as both a bug and enhancement to be resolved later. |
(Sorry for wrongly pinging from the PR). I've done some work on the plugin, but I don't know how to tackle performance overheads, especially for stripping whitespace (outside of disabling for large files). Even modified-lines-only stripping should not solve anything on large files, because it calls on an external So I'm just going to rattle off a few thoughts off the top of my head, in case someone else is interested:
|
For stripping whitespace, I have written axelf4/vim-strip-trailing-whitespace which is very fast in the common case. It avoids the need to diff the file by always tracking the modified lines that end up with trailing WS. |
Hi,
(at least) on my ARMv7-Platform I realize a significant slowdown when I enable the plugin.
I go with the default setting, and have in addition
Is this problem known?
With kind regards,
Daniel
The text was updated successfully, but these errors were encountered: