Skip to content

Conversation

@dominictarr
Copy link
Contributor

this change makes it easy to use jsbloom as a counter. addEntry now returns false if the item was already in the set. This makes it easy to keep a counter of total elements added, and total unique items added.

This change does not effect performance significantly, since the implementation already tests for membership before updating.

@cry cry merged commit d13cb2e into cry:master Dec 14, 2016
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