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
cfe39b78
Unverified
Commit
cfe39b78
authored
Feb 04, 2020
by
Salvatore Sanfilippo
Committed by
GitHub
Feb 04, 2020
Browse files
Merge pull request #6818 from leomurillo/zskiplistLevels
Set ZSKIPLIST_MAXLEVEL to 32
parents
6ca1ad1e
560e1e6c
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/server.h
View file @
cfe39b78
...
...
@@ -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