Termsslug: persistent-red-black-tree

Persistent Red-Black Tree

持久化红黑树

Self-balancing BST with path-copying for immutable updates, the classic backing for Clojure sorted collections.

Curated Intelligence

1 items · Page 1/1
Hacker News AIT2·Open Source
58 pts
Jolt Swaps Red-Black Trees for B+Trees to Cut Peak Memory 40%

Jolt replaced the persistent red-black tree behind its sorted-map and sorted-set with a persistent B+tree, also updating its java.util.TreeMap and TreeSet shims. Each red-black node carried 48 bytes of metadata per entry; the switch cut peak memory by 40% and made most operations faster at every size, at the cost of a separate batch-build path for efficiently constructing many medium-sized maps.