mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 10:25:47 +02:00
chore: reformat listpack according to valkey 8 (#3810)
Also add benchmarks for lpCompare code when list contains integers. Signed-off-by: Roman Gershman <roman@dragonflydb.io>
This commit is contained in:
parent
6a13329523
commit
8ae71411bd
3 changed files with 152 additions and 133 deletions
|
@ -81,6 +81,9 @@ int ld2string(char *buf, size_t len, long double value, ld2string_mode mode);
|
|||
#define LRU_CLOCK_MAX ((1<<LRU_BITS)-1) /* Max value of obj->lru */
|
||||
#define LRU_CLOCK_RESOLUTION 1000 /* LRU clock resolution in ms */
|
||||
|
||||
/* Bytes needed for long -> str + '\0' */
|
||||
#define LONG_STR_SIZE 21
|
||||
|
||||
void serverLog(int level, const char *fmt, ...);
|
||||
void _serverPanic(const char *file, int line, const char *msg, ...);
|
||||
void _serverAssert(const char *estr, const char *file, int line);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue