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 unnecessary allocations in 64 bit BSI #394

Merged
merged 2 commits into from
Aug 25, 2023

Conversation

anacrolix
Copy link
Contributor

@anacrolix anacrolix commented Aug 8, 2023

A performance improvement I made after Bitmap allocation became the most significant performance issue after fixing #383. This avoids allocating bitmaps all over the heap and packs them together in the BSI for a good performance boost.

There's a small change to when RunOptimize is called, I found the existing behaviour was incorrect after extensive testing. This is probably related to my observation in #383 (comment).

This fix is picked from my production branch at https://github.com/anacrolix/roaring/tree/anacrolix.

@lemire lemire requested a review from guymolinari August 8, 2023 02:57
@lemire
Copy link
Member

lemire commented Aug 8, 2023

@guymolinari Can you review?

@lemire
Copy link
Member

lemire commented Aug 24, 2023

@guymolinari This is a small PR and it looks ok, but I'd prefer if it were independently reviewed. Can you have a look?

@guymolinari
Copy link
Contributor

guymolinari commented Aug 24, 2023 via email

@anacrolix
Copy link
Contributor Author

Cheers @guymolinari

@lemire lemire merged commit 507997c into RoaringBitmap:master Aug 25, 2023
5 checks passed
@lemire
Copy link
Member

lemire commented Aug 25, 2023

Merged.

Thanks @guymolinari

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.

3 participants