Commit 07dc1b42 authored by antirez's avatar antirez
Browse files

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.
parent 10e71b3d
...@@ -1305,7 +1305,7 @@ int expireIfNeeded(redisDb *db, robj *key) { ...@@ -1305,7 +1305,7 @@ int expireIfNeeded(redisDb *db, robj *key) {
/* ----------------------------------------------------------------------------- /* -----------------------------------------------------------------------------
* API to get key arguments from commands * API to get key arguments from commands
* ---------------------------------------------------------------------------*/ * ---------------------------------------------------------------------------*/
#define MAX_KEYS_BUFFER 65536 #define MAX_KEYS_BUFFER 256
static int getKeysTempBuffer[MAX_KEYS_BUFFER]; static int getKeysTempBuffer[MAX_KEYS_BUFFER];
/* The base case is to use the keys position as given in the command table /* The base case is to use the keys position as given in the command table
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment