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

fix(lsp): diagnostics use own thread and debounce #9572

Merged
merged 10 commits into from
Mar 10, 2021

Conversation

kitsonk
Copy link
Contributor

@kitsonk kitsonk commented Feb 22, 2021

No description provided.

@kitsonk
Copy link
Contributor Author

kitsonk commented Feb 25, 2021

We will incorporate some concepts here in future PRs.

@kitsonk
Copy link
Contributor Author

kitsonk commented Feb 27, 2021

Based on a chat we had a core team yesterday, I am re-opening this PR as it might be a viable approach...

Benchmarking on my local machine demonstrates that it does the "big" benchmark in ~2800ms where as current main does it in ~7563ms and the combined #9552 and #9557 results in ~5049ms. So this PR at the moment gives the biggest improvement in performance, but without changing the locking mechanisms.

@kitsonk
Copy link
Contributor Author

kitsonk commented Feb 27, 2021

Looking at the Bench CI, it is producing a 3178ms benchmark, while main is producing around ~8600ms.

@piscisaureus piscisaureus self-requested a review March 1, 2021 10:55
cli/lsp/diagnostics.rs Outdated Show resolved Hide resolved
cli/lsp/diagnostics.rs Outdated Show resolved Hide resolved
cli/lsp/diagnostics.rs Outdated Show resolved Hide resolved
cli/lsp/diagnostics.rs Outdated Show resolved Hide resolved
@kitsonk kitsonk merged commit a020ebd into denoland:main Mar 10, 2021
@kitsonk kitsonk deleted the fix-lsp-debounce branch March 10, 2021 02:41
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

Successfully merging this pull request may close these issues.

None yet

3 participants