Skip to content

Use rank() API from sroar and some cleanup #8002

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
Aug 30, 2021
Merged

Conversation

ahsanbarkati
Copy link
Contributor

@ahsanbarkati ahsanbarkati commented Aug 26, 2021

IndexOf was converting the bitmap to array and then used binary search to find the rank.
The conversion to array is extremely inefficient. This PR uses newly implemented
Rank API from sroar which finds the rank in an efficient way. This PR also does some
cleanup.


This change is Reviewable

Copy link
Contributor

@NamanJain8 NamanJain8 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me.

@ahsanbarkati ahsanbarkati merged commit c4d79ec into master Aug 30, 2021
@ahsanbarkati ahsanbarkati deleted the ahsan/indexof branch August 30, 2021 06:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants