SparseBitSet
SparseBitSet copied to clipboard
An efficient sparse bit set implementation for Java
This PR adds a named module instead of an automatic module name. This is required to jlink compatibility.
When SparseBitSet is used as dependency, the parent project can't be processed by [jlink](https://docs.oracle.com/javase/9/tools/jlink.htm), which rejects dependencies with automatic module names. Adding `module-info.java` with this content could fix this: ```...
remove redundant modifiers remove exceptions that are never thrown update dependencies that has vulnerabilities fix some typos code already uses string methods that are available since java 6, so I...
fix some typo
Reformatting the license makes it tedious to verify that it actually is a verbatim copy of the ASL 2.0 license. Using the exact format it was published in originally makes...
I have made two simple test (below). The first, with SparseBitSet gives me OOM. The second works without much memory usage. What I made wrong? ``` public static void main(String[]...
https://github.com/brettwooldridge/SparseBitSet/blob/cc7b16f6328df8ce5c8ef74c92e8c72b193de2fa/src/main/java/com/zaxxer/sparsebits/SparseBitSet.java#L1293  Is it should be "j index after the last bit to be set"?
Hi, while testing the 1.2 version I found the following issue: ``` SparseBitSet set = new SparseBitSet(); set.set(0); set.set(64); System.out.println(set.previousClearBit(64)); set.clear(0); set.set(1); System.out.println(set.previousClearBit(64)); ``` Expected: (consistent with BitSet) ``` 63...
Current limit is to use indexes as 32bits ints, is it possible to implement indexes as 64bit long?
The presentation seems to suggest there were JUnit tests, but the source code seems to provide none. Don't know about people in general, but seeing a complex data structure without...