Inkme News

← Back to list

From Skiplists to B+ Trees: Making Valkey Sorted Sets More Memory Efficient

Valkey 9.2 replaces the skiplist-backed sorted set with a high-fanout B+ tree variant called fbtree, achieving 36–43% reduction in per-member memory overhead. The new design incorporates optimizations like SIMD searches, linked leaves, and fast paths for sequential inserts and pops tailored to Valkey's workload.

Background

Valkey is an open-source in-memory key-value store forked from Redis, maintained by AWS and other contributors. Sorted sets are a core data type used for ranking, leaderboards, and range queries.

Source
Lobsters
Published
Nov 21, 2026 at 12:31 PM
Score
7.0 / 10