Skip to content

Latest commit

 

History

History
16 lines (11 loc) · 1.08 KB

README.md

File metadata and controls

16 lines (11 loc) · 1.08 KB

Sets Build Status Maven Central Javadocs

Special purpose implementations of java.util.Set that in the right niche use case can be much more efficient than implementations shipped with the JDK.

The implementations support serialization but this has not been optimized.

Currently includes classes:

SmallIntegerSet
Supports java.lang.Integers from 0 to 63, uses the same amount of memory for the entire set as a single java.lang.Long. Also implements java.util.SortedSet.

All methods are below 325 byte and should therefore HotSpot should be able to inline them if they are hot.

None of the sets or iterators are fail-fast.