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

Research spike: Performance improvements and syntax tree data structure #37

Open
znorman-harris opened this issue Oct 31, 2023 · 0 comments
Labels
language-server Features for the language server

Comments

@znorman-harris
Copy link
Contributor

We need to re-work the data structure for the tree. It was made to be recursive because that's how syntax trees logically operate, but that doesn't mean that we have to store data like that.

Think through creating a non-recursive structure that we can loop through and track the indices of children/parents as properties and add helper methods to pluck those out of the original tree.

Minimally this removes adding/removing the scope detail all at once. We could also think through how to minify the data structure as well which will directly reduce memory usage and how fast we can add/restore from cache and send around.

@znorman-harris znorman-harris added the language-server Features for the language server label Oct 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
language-server Features for the language server
Projects
Status: No status
Development

No branches or pull requests

1 participant