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

Remove 20% of wasted memory allocations by not calling celast.NavigateAST #3

Merged
merged 1 commit into from
Jan 4, 2024

Conversation

tonyhb
Copy link
Contributor

@tonyhb tonyhb commented Jan 4, 2024

We navigate the AST ourselves. Calling celast.NavigateAST allocates items on the heap needlessly, as we can work with the raw AST received when parsing.

This reduces memory allocated in benchmark tests from 14gb to 10gb (note this is allocations, not in use).

@tonyhb tonyhb merged commit a458261 into main Jan 4, 2024
2 checks passed
@tonyhb tonyhb deleted the chore/remove-wasted-memory-usage branch January 4, 2024 15:23
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.

1 participant