Skip to content
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

[Enhancement] Improve performance, when huge block of code is edited #10

Open
subhamayd2 opened this issue Jul 15, 2021 · 3 comments
Open

Comments

@subhamayd2
Copy link

subhamayd2 commented Jul 15, 2021

When I am editing a huge block of code, the editor feels a bit sluggish.
This is probably happening because on each change, the whole block of code is being parsed for highlighting.
Is there any way that can improve the performance? I was thinking, if the parsing can be debounced somehow, that might improve the performance.

@subhamayd2 subhamayd2 changed the title [Enhanceme] [Enhancement] Improve performance, when huge block of code is edited Jul 15, 2021
@BertrandBev
Copy link
Owner

Yep, we could also perform local highlighting, since most of the time local changes don't affect the rest of the document!

@subhamayd2
Copy link
Author

Agreed. Something like, only parsing the line that is currently being edited.

@alberteije
Copy link

Any improvement on this? Looks like we have same situation until now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants