For years, the skiplist was the undisputed champion of the Redis-style sorted set. It was elegant, efficient, and served as the backbone for millions of applications. But in the world of high-performance caching, 'good enough' is the enemy of 'optimal.' With the release of Valkey 9.2, the community has decided to move on, swapping out the aging skiplist for something far more potent.
Out with the Old, In with the fbtree
Valkey 9.2 introduces a significant architectural pivot: replacing the traditional skiplist for large sorted sets with a high-fanout B+ tree variant called fbtree. Specifically, this is a 61-way B+ tree, designed to be far more cache-friendly than its predecessor.
While skiplists are great for implementation simplicity, they can be memory-hungry and cause frequent CPU cache misses. By shifting to a B+ tree, Valkey optimizes how data is packed and accessed, treating your hardware's memory hierarchy with much more respect.
Massive Gains in Memory and Speed
The numbers coming out of the 9.2 release are staggering. In tests involving 5-million-member sets, per-member memory overhead plummeted by 36% to 43%, saving as much as 109 MB in a single instance.
But this isn't just a memory play. The architectural shift has supercharged performance. Throughput for ZADD operations has surged by 105%, while ZREM is up by 76%. Essentially, Valkey is allowing you to do significantly more with the same hardware you're already running.
More Than Just a Tree
While the fbtree is the headline-grabber, Valkey 9.2 is a powerhouse update overall. Alongside the memory wins, users now get forkless snapshots and compressed replication traffic, further reducing the operational strain on servers during load spikes.
As Valkey continues to diverge from its Redis roots, it's becoming clear that the project isn't just maintaining a fork—it's aggressively re-engineering the core to squeeze every last drop of performance out of modern silicon.
Sources
Media



