Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork772
Improve performance of white space removal#137
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
On large'ish python files, this was taking 10+ secondsat save time. Now it runs instantly, even on very largepython files.Cursor position does not move.
Improve performance of white space removal
Awesome. Thanks |
Klen, for some reason, my patch doesn't work all the time. Occasionally, it leaves white space, and I haven't figured out the cause yet. Does it work for you? |
Found the cause: The problem appears to manifest when I have multiple split buffers. I'll look into it today. |
This patch fixes it, but it won't work for python files without a ".py" extension. I tried using autocmd FileType python autocmd BufWritePre ..., but that didn't work either.
|
Ah hah. I see you fixed it in9db9857. Nice work! |
On large'ish python files, this was taking 10+ seconds
at save time. Now it runs instantly, even on very large
python files.
Cursor position does not move.