Unverified Commit cfe39b78 authored by Salvatore Sanfilippo's avatar Salvatore Sanfilippo Committed by GitHub
Browse files

Merge pull request #6818 from leomurillo/zskiplistLevels

Set ZSKIPLIST_MAXLEVEL to 32
parents 6ca1ad1e 560e1e6c
...@@ -335,7 +335,7 @@ typedef long long ustime_t; /* microsecond time type. */ ...@@ -335,7 +335,7 @@ typedef long long ustime_t; /* microsecond time type. */
/* Anti-warning macro... */ /* Anti-warning macro... */
#define UNUSED(V) ((void) V) #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 */ #define ZSKIPLIST_P 0.25 /* Skiplist P = 1/4 */
/* Append only defines */ /* Append only defines */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment