summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2020-03-02 16:49:11 +0100
committerantirez <antirez@gmail.com>2020-03-02 16:49:11 +0100
commit6dd8de177418da61e3d6466fe01fb5b3413c8308 (patch)
tree6819dbc718c06a38d53c8a1fcb0b25d47326402a
parent7ca81170c7e98a4f70f203dd1afe027efe3aed89 (diff)
downloadredis-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/db.c b/src/db.c
index 6c5d4b4d4..04e26c33b 100644
--- a/src/db.c
+++ b/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