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

Investigate performance of workspace diagnostics when disabled #826

Closed
JohnnyMorganz opened this issue Nov 10, 2024 · 1 comment
Closed
Labels
bug Something isn't working performance Performance issues with the language server

Comments

@JohnnyMorganz
Copy link
Owner

JohnnyMorganz commented Nov 10, 2024

Similar to #749, profiling shows that workspace diagnostics take a significant amount of time (30s). Although, much of it might be due to the start up cost of type checking the whole workspace, however profiling does not show us any significant calls to Frontend::check:

image

Also, findFilesForWorkspaceDiagnostics takes 2s, which can probably be improved further to prevent delays whilst workspace diagnostics are being computed on a fully cached repository. (workspace diagnostics should be instanteneous if there have been no changes to files)

@JohnnyMorganz JohnnyMorganz added bug Something isn't working performance Performance issues with the language server labels Nov 10, 2024
@JohnnyMorganz
Copy link
Owner Author

Actually, this is with luau-lsp.diagnostics.workspace disabled, which is pretty bad

@JohnnyMorganz JohnnyMorganz changed the title Investigate performance of workspace diagnostics Investigate performance of workspace diagnostics when disabled Nov 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working performance Performance issues with the language server
Projects
None yet
Development

No branches or pull requests

1 participant