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:
antirez 2020-03-02 16:49:11 +01:00
parent 7ca81170c7
commit 6dd8de1774

View File

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