Set ZSKIPLIST_MAXLEVEL to optimal value given 2^64 elements and p=0.25

This commit is contained in:
Leo Murillo 2020-02-02 02:48:00 -06:00
parent 53ac8c7df2
commit 560e1e6c4b

View File

@ -335,7 +335,7 @@ typedef long long ustime_t; /* microsecond time type. */
/* Anti-warning macro... */
#define UNUSED(V) ((void) V)
#define ZSKIPLIST_MAXLEVEL 64 /* Should be enough for 2^64 elements */
#define ZSKIPLIST_MAXLEVEL 32 /* Should be enough for 2^64 elements */
#define ZSKIPLIST_P 0.25 /* Skiplist P = 1/4 */
/* Append only defines */