mirror of
https://github.com/redis/redis.git
synced 2026-04-21 03:01:35 -04:00
when we know the size of the zset we're gonna store in advance, we can check if it's greater than the listpack encoding threshold, in which case we can create a skiplist from the get go, and avoid converting the listpack to skiplist later after it was already populated.