This article analyzes the performance and memory improvements achieved by replacing the persistent red-black tree used in Jolt's sorted collections with a B+tree. By utilizing larger nodes that reduce pointer chasing and cache misses, the change results in a 40% reduction in peak memory usage and faster operations for both reads and writes.
Background
Jolt is a Scheme implementation that originally ported Clojure's persistent tree map data structures, which relied on red-black trees known for high per-node metadata overhead and poor cache locality at large scale.
- Source
- Lobsters
- Published
- Nov 24, 2026 at 01:15 AM
- Score
- 6.0 / 10