-
Notifications
You must be signed in to change notification settings - Fork 123
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
the source file much longer, the :ClangFormat runs much longer #85
Comments
vim-codefmt also overwrites entire buffer with formatted output. So I don't know what causes the performance issue on your environment. https://github.com/google/vim-codefmt/blob/master/autoload/codefmt/clangformat.vim#L121 Please let me know the pre-condition (OS, Vim version) and how to reproduce it if you're still interested in this plugin. Otherwise I will close this issue since I cannot investigate further. |
Switched to google/vim-codefmt for a while, but wanted to come back to this plugin. Culprit in my case seems to have been Using my casual +10k lines C-file, I started the profiler to see what took time:
In Found a similar issue on By installing Konfekt/FastFold, the time spent in If I understand correctly, google/vim-codefmt does replace the buffer too ( |
slow problem when the source file was long/big.
for example: any source file 1000+ lines
The text was updated successfully, but these errors were encountered: