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: LSP parser cache enhance #1544

Closed
He1pa opened this issue Aug 7, 2024 · 0 comments
Closed

Enhancement: LSP parser cache enhance #1544

He1pa opened this issue Aug 7, 2024 · 0 comments
Assignees
Labels
lsp parser Issues or PRs related to kcl parser

Comments

@He1pa
Copy link
Contributor

He1pa commented Aug 7, 2024

This code is used to get the AST from the cache

image

But this clone() takes up about 95% time of the parse phase in lsp compile.

@Peefy Peefy added parser Issues or PRs related to kcl parser lsp labels Aug 7, 2024
@Peefy Peefy added this to the v0.10.0 Release milestone Aug 7, 2024
@Peefy Peefy changed the title LSP parser cache enhance Enhancement: LSP parser cache enhance Aug 7, 2024
@He1pa He1pa closed this as completed Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lsp parser Issues or PRs related to kcl parser
Projects
None yet
Development

No branches or pull requests

2 participants