Skip to content

Feat optimize shrink to fit #114

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

Merged
merged 2 commits into from
Jul 24, 2025

Conversation

luorong1999
Copy link
Contributor

When a key has a large number of values, after using setbit to clean up some data, I found that memory usage did not decrease. For example, array_container does not shrink after expansion. I found that roaring_bitmap_shrink_to_fit function is provided for shrinking. Therefore, a --mem option is added to r.optimize to support shrinking.

@aviggiano
Copy link
Owner

Thanks for the contribution, looks great

@aviggiano aviggiano merged commit 913874f into aviggiano:master Jul 24, 2025
4 checks passed
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