Termsslug: sorted-set

Sorted Set

有序集合

Valkey data type ordered by score with lookups by member and by rank.

Curated Intelligence

1 items · Page 1/1
Hacker News AIT2·Open Source
62 pts
Valkey 9.2 Replaces Skiplist with B+ Tree, Cutting Sorted Set Memory Up to 43%

Valkey 9.2 replaces the skiplist backing large sorted sets with fbtree, a high-fanout B+ tree variant, cutting per-member memory overhead by 36-43% and saving up to 109 MB in a 5-million-member test. fbtree combines contiguous storage with SIMD searches, linked leaves, and fast paths for sequential inserts and pops tuned to Valkey's workload and allocator. The change matters most for workloads with large sorted sets and commands like ZADD, ZRANK, and ZCOUNT.