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:
Roman Gershman 2024-09-27 12:22:08 +03:00 committed by GitHub
parent 6a13329523
commit 8ae71411bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 152 additions and 133 deletions

View file

@ -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);