Merge pull request #6818 from leomurillo/zskiplistLevels

Set ZSKIPLIST_MAXLEVEL to 32
This commit is contained in:
Salvatore Sanfilippo 2020-02-04 10:20:56 +01:00 committed by GitHub
commit cfe39b7859
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 */