-
Notifications
You must be signed in to change notification settings - Fork 84
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
Feature: expose consecutive runs #274
Comments
Hey @ranfdev 👋 Roaring bitmaps are not necessarily "bitmaps" but are optimized to not be too big for some cases. What you seem to want is to know the number of missing values in a certain range. You can probably use the |
Thanks, but unfortunately That's because The function I know roaring bitmaps may be stored compressed with run length encoding. In fact, If the roaring bitmap contains RLE compressed ones as I think this should be implemented inside the library, because as a user I don't have access to the internal representation of the bitmap, so I cannot optimize the query. |
Ho! I see. That's indeed not the same.
For now you could try implementing this outside of the library by using the iterator. But happy to review a PR if you think performances matter. |
roaring.consecutive(bit: 0, range: 13..)
could return the number of consecutive zeroes from bit 13.The text was updated successfully, but these errors were encountered: