-
Notifications
You must be signed in to change notification settings - Fork 539
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimisation: Add zero-garbage deserialiser for ByteBuffer to Roaring…
…Bitmap (#650) * optimisation: add deserialiser for bits byte array to RoaringBitmap - existing most performant way was to convert it to a BitSet and then use BitSetUtil - this adds a helper which you can use to get a RoaringBitmap directly from the byte array you read on the wire * fix: copy only exact range provided when creating a bitmap container - this removes the need to zero-out the threadlocal buffer everytime * * minor refactor * * refactor: let users provide a cached buffer if they are that needy * * new: adds similar method in BufferBitSetUtil * * refactor: for style * * fix: uncomment commented out benchmarks had hidden locally, forgot to uncomment
- Loading branch information
Showing
5 changed files
with
454 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.