Use a smaller getkeys global buffer.
The idea is that very few commands have a lot of keys, and when this happens the allocation time becomes neglegible.
This commit is contained in:
parent
7ca81170c7
commit
6dd8de1774
2
src/db.c
2
src/db.c
@ -1305,7 +1305,7 @@ int expireIfNeeded(redisDb *db, robj *key) {
|
||||
/* -----------------------------------------------------------------------------
|
||||
* API to get key arguments from commands
|
||||
* ---------------------------------------------------------------------------*/
|
||||
#define MAX_KEYS_BUFFER 65536
|
||||
#define MAX_KEYS_BUFFER 256
|
||||
static int getKeysTempBuffer[MAX_KEYS_BUFFER];
|
||||
|
||||
/* The base case is to use the keys position as given in the command table
|
||||
|
Loading…
x
Reference in New Issue
Block a user