diff options
author | antirez <antirez@gmail.com> | 2020-03-02 16:49:11 +0100 |
---|---|---|
committer | antirez <antirez@gmail.com> | 2020-03-02 16:49:11 +0100 |
commit | 6dd8de177418da61e3d6466fe01fb5b3413c8308 (patch) | |
tree | 6819dbc718c06a38d53c8a1fcb0b25d47326402a | |
parent | 7ca81170c7e98a4f70f203dd1afe027efe3aed89 (diff) | |
download | redis-6dd8de177418da61e3d6466fe01fb5b3413c8308.tar.gz |
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.
-rw-r--r-- | src/db.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |