Set ZSKIPLIST_MAXLEVEL to optimal value given 2^64 elements and p=0.25
This commit is contained in:
parent
53ac8c7df2
commit
560e1e6c4b
@ -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 */
|
||||
|
Loading…
x
Reference in New Issue
Block a user