New open-source Java library ChaosTree offers AVL, Red-Black, B-Tree and B+ Tree structures
A developer released ChaosTree, a zero-dependency Java library implementing multiple sorted-tree data structures—AVL, Red-Black, B-Tree, and B+ Tree—with Set and Map APIs modeled on JDK's NavigableSet, NavigableMap, SequencedSet, and SequencedMap interfaces. It also includes specialized bulk-construction methods like buildFromSorted and importFlatMatrix that let developers tune node occupancy directly.
GoKawiil's interpretation of the reporting above, not reported fact.
Most Java developers rely on built-in TreeMap/TreeSet implementations without alternatives for B-Tree-style structures, which are more cache-friendly for large datasets. ChaosTree's emphasis on structural validation, benchmarking, and cache-locality optimizations suggests it targets performance-sensitive applications where standard JDK collections fall short, particularly in large range-scan workloads.
- ChaosTree supports four tree types—AVL, Red-Black, B-Tree, B+ Tree—in one zero-dependency library.
- It offers advanced bulk-loading APIs (buildFromSorted, importFlatMatrix) with configurable node occupancy factors.
- The project emphasizes rigorous testing, including property-based and white-box structural validation, plus reproducible JMH benchmarks.
Source: github.com, 2026-09-14
Published there as: “Show HN: ChaosTree – A zero-dependency Java tree library (AVL,RBT,B-Tree,B+Tree)”
Read the original report → The summary and analysis above are GoKawiil's own, written from reporting by the source above. Facts and quotes belong to the original publisher.