Skip to content

Conversation

ebrensi
Copy link
Contributor

@ebrensi ebrensi commented Jan 3, 2021

This pull request includes the same changes I made to FastBitSet, with a couple of modifications specific to this library:

  • I eliminated the count property from the prototype TypedFastBitSet object. since it appears to be unnecessary. this.words.length seems to be fine. Am I missing something?

  • I noticed the hammingWeight4() from FastBitSet, which is not used internally, so I tried it out for the size() method and it works great. On my laptop the cardinality test typically runs ~30ms faster.

  • npm complained of a vulnerability and suggested npm audit fix, which I did and it updated a dependency, which is reflected in package.json and package-lock.json.

After making my initial changes I discovered I was working with an older version of TypedFastBitSet that I forked several months ago, so I merged the updates and fixed a few conflicts.

@lemire
Copy link
Owner

lemire commented Jan 4, 2021

Looks good!

@lemire lemire merged commit 26b32cc into lemire:master Jan 4, 2021
@ebrensi ebrensi deleted the update branch January 4, 2021 18:21
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