-
Notifications
You must be signed in to change notification settings - Fork 462
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
perf!: consolidated updates to address performance issues #868
Conversation
This fixes #866 and closes #867. --------- Signed-off-by: Jint-lzxy <[email protected]> Co-authored-by: Layton <[email protected]>
Sorry, I can't see the improvement of the scroll velocity when open this file. What's more, |
I also haven't observed any performance improvement, and I don't use scrollview and neoscroll. The performance issue should be unrelated to them. |
Hmmm I somehow cannot reproduce this: The current startup time on my side is close to the that of Perhaps explaining some background may be helpful? What this PR hopes to address is:
If the startup time of any of the above situations is still slow, it may be because:
:lua vim.treesitter.get_parser():parse() This command should take a long time to complete. |
Now it ok for me after |
cc @fecet |
Does this PR need further modifications? Or is it ready to go? |
I think it's good to go. Currently waiting for @fecet's response as he reported very limited performance improvements. |
Still don't find performance improvement unless set
this to global. |
@fecet So u're using :lua vim.treesitter.get_parser():parse() This can only be resolved by updating the related parser(s), we cannot do anything. But yes we can use simpler processing methods on relatively larger files, a.k.a, |
The file I tested is |
Thanks for the sample! Will do some testings there. |
I should have identified the problem. Now |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
OK, it's good for me now |
* perf!: consolidated updates to address performance issues This fixes ayamir#866 and closes ayamir#867. * fixup! perf!: consolidated updates to address performance issues * revert: `nvim-bufdel` shall always be available (API calls) * feat(rainbow_delims): line detections for c/cpp --------- Signed-off-by: Jint-lzxy <[email protected]> Co-authored-by: Layton <[email protected]>
This fixes #866 and closes #867.
cc @fecet