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

Better Utilize Caching in the Language Server #13

Open
InsertCreativityHere opened this issue Nov 28, 2023 · 0 comments
Open

Better Utilize Caching in the Language Server #13

InsertCreativityHere opened this issue Nov 28, 2023 · 0 comments
Assignees

Comments

@InsertCreativityHere
Copy link
Member

Currently, the language server only caches the AST and list of Slice files (given to it by slicec).
Very often we perform transformations on these things (transforming paths, gathering lists of elements, etc.),
but we do these transformations on-the-fly every time we need them.

It would be better to perform these once, then cache the results.
These cached values only need to be updated when:

  1. A user saves a file
  2. A user changes a configuration setting

Both of these cases already trigger a full re-compilation anyways.

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