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

perf(lsp): Batch "$projectChanged" notification in with the next JS request #23451

Merged
merged 5 commits into from
Apr 22, 2024

Conversation

nathanwhit
Copy link
Member

The actual handling of $projectChanged is quick, but JS requests are not. The cleared caches only get repopulated on the next actual request, so just batch the change notification in with the next actual request.

No significant difference in benchmarks on my machine, but this speeds up did_change handling and reduces our total number of JS requests (in addition to coalescing multiple JS change notifs into one).

Copy link
Collaborator

@nayeemrmn nayeemrmn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@nathanwhit nathanwhit merged commit aac7a8c into denoland:main Apr 22, 2024
17 checks passed
@nathanwhit nathanwhit deleted the collapse-changes-lsp branch April 22, 2024 15:03
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

2 participants