Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
560e1e6c
Commit
560e1e6c
authored
Feb 02, 2020
by
Leo Murillo
Browse files
Set ZSKIPLIST_MAXLEVEL to optimal value given 2^64 elements and p=0.25
parent
53ac8c7d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.h
View file @
560e1e6c
...
...
@@ -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 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment