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

Improve efficiency of diagnostic marker drawing #4

Open
techee opened this issue Oct 3, 2023 · 0 comments
Open

Improve efficiency of diagnostic marker drawing #4

techee opened this issue Oct 3, 2023 · 0 comments

Comments

@techee
Copy link
Owner

techee commented Oct 3, 2023

At the moment, diagnostic markers (error/warning underlines) are redrawn every time a message arrives from the server. Also, all the document's markers are cleared and all of them are re-inserted. This could be made more efficient if there are performance problems:

  • marker re-drawings could be batched and performed only after some small delay in case multiple diagnostic messages arrive in burst from the server
  • some diff could be calculated against the displayed markers and only the differences could be cleared/redrawn
  • possibly, only the visible area of the document could be redrawn
@techee techee mentioned this issue Nov 2, 2023
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

1 participant