https://github.com/marschall/sets
Special purpose implementations of java.util.Set
https://github.com/marschall/sets
Last synced: 3 months ago
JSON representation
Special purpose implementations of java.util.Set
- Host: GitHub
- URL: https://github.com/marschall/sets
- Owner: marschall
- Created: 2016-06-12T11:18:45.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-13T06:33:48.000Z (over 7 years ago)
- Last Synced: 2025-01-16T02:44:56.794Z (4 months ago)
- Language: Java
- Size: 91.8 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Sets [](https://travis-ci.org/marschall/sets) [](https://maven-badges.herokuapp.com/maven-central/com.github.marschall/sets) [](http://www.javadoc.io/doc/com.github.marschall/sets)
====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.Integer
s from 0 to 63, uses the same amount of memory for the entire set as a singlejava.lang.Long
. Also implementsjava.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.