Skip to content

Move checks for bitmap size == 0 to isEmpty#4820

Merged
nishantmonu51 merged 1 commit intoapache:masterfrom
metamx:isEmptyNotZero
Sep 19, 2017
Merged

Move checks for bitmap size == 0 to isEmpty#4820
nishantmonu51 merged 1 commit intoapache:masterfrom
metamx:isEmptyNotZero

Conversation

@drcrallen
Copy link
Copy Markdown
Contributor

Some of the size() implementations go through the whole bitmap when all that is really wanted is an isEmpty check. This moves bitmap.size() == 0 style checks to call isEmpty() instead

@drcrallen drcrallen added this to the 0.11.0 milestone Sep 19, 2017
Copy link
Copy Markdown
Member

@nishantmonu51 nishantmonu51 left a comment

Choose a reason for hiding this comment

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

👍

@nishantmonu51 nishantmonu51 merged commit 00d39ce into apache:master Sep 19, 2017
@leventov leventov deleted the isEmptyNotZero branch September 19, 2017 16:44
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