# ChaosTree - Zero-dependency Java tree library with AVL, RBT, B-Tree, and B+Tree

Original title: Show HN: ChaosTree – A zero-dependency Java tree library (AVL,RBT,B-Tree,B+Tree)

> Hacker News story 49694404 · language: en · submitted 2026-09-14
> Web version: https://zeli.app/story/49694404
> About this feed: https://zeli.app/llms.txt · Agent guide: https://zeli.app/skill.md

▲ 9 · by [chaos_vy](<https://news.ycombinator.com/user?id=chaos_vy>) · 💬 9
[original](<https://github.com/Chaos-vy/ChaosTree>) · [HN discussion](<https://news.ycombinator.com/item?id=49694404>)

## Summary

ChaosTree is a zero-dependency Java library offering AVL, Red-Black, B-Tree, and B+Tree implementations as drop-in replacements for Java's NavigableSet and NavigableMap. Built for performance, its N-ary engine uses cache-friendly arrays to cut memory stalls by nearly 40% during large range scans. It passes over 214,000 Guava Testlib cases and property-based fuzzing, ensuring strict compatibility with java.util.TreeMap and TreeSet. With JDK 21 support, bulk-load APIs, and JMH benchmarks, ChaosTree is ideal for developers needing fast, reliable sorted collections.

## Key quote

> I wanted ChaosTree to be correct just as much as I wanted it to be fast.

## HN discussion (9 comments)

### [my-next-account](<https://news.ycombinator.com/item?id=49696312>)

> You should add an intrusive variant of all the trees.

### [MiroslavPokorny](<https://news.ycombinator.com/item?id=49694538>)

> Does this really need to be JDK 21 ?
>
> I personally require libs that are JDK 11.

---

## Cite

- Page: https://zeli.app/story/49694404
- Date: 2026-09-14
- Source: github.com (https://github.com/Chaos-vy/ChaosTree)
- Hacker News: https://news.ycombinator.com/item?id=49694404

## Other languages

- zh: https://zeli.app/zh/story/49694404 · markdown: https://zeli.app/zh/story/49694404.md
- ja: https://zeli.app/ja/story/49694404 · markdown: https://zeli.app/ja/story/49694404.md
- ko: https://zeli.app/ko/story/49694404 · markdown: https://zeli.app/ko/story/49694404.md
- de: https://zeli.app/de/story/49694404 · markdown: https://zeli.app/de/story/49694404.md
- es: https://zeli.app/es/story/49694404 · markdown: https://zeli.app/es/story/49694404.md
- ru: https://zeli.app/ru/story/49694404 · markdown: https://zeli.app/ru/story/49694404.md
