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

delete unused dict entries in a squash #131

Merged
merged 11 commits into from
Apr 3, 2023
Merged

Conversation

matko
Copy link
Member

@matko matko commented Mar 30, 2023

In the squash refactor I forgot to make sure unused dict entries are deleted. This PR does a use check for all squashed dict entries and removes the ones that are unused.

@matko
Copy link
Member Author

matko commented Apr 3, 2023

This PR got a bit bigger than it was originally. Besides unused dict deletions, there's also a whole bunch of memory optimizations in here now, mostly around pre-allocating squash buffers so that we don't rely on dynamic growth, which regularly overshoots (thus needing more memory than is actually needed), and is also slower since it incurs several buffer moves.

There's more that could be done, but since the squash itself is now implemented and tests have been written for it, I think we should merge this first.

@matko matko merged commit dff58eb into main Apr 3, 2023
@matko matko deleted the squash_delete_dict_entries branch April 3, 2023 16:18
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.

2 participants