summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorantirez <antirez@gmail.com>2012-08-21 15:10:16 +0200
committerantirez <antirez@gmail.com>2012-08-21 15:10:16 +0200
commitf7f022e4e0aa36b34b7c72a5073c779d7ef8866f (patch)
treeabc3b568b3c50acd40d6ac58a741bfa614f4afb9
parent51ab89d8998e3f6844f72e020e53200e80fe52f7 (diff)
On stack buffer to read replies set to 16k (was 2k).
It was verified experimentally that this value, on Linux kernels, provides better performances compared to the 2k value. However larger values apparently don't produce any noticeable effect on performances.
-rw-r--r--hiredis.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/hiredis.c b/hiredis.c
index 41db9e8..4709ee3 100644
--- a/hiredis.c
+++ b/hiredis.c
@@ -1068,7 +1068,7 @@ int redisSetTimeout(redisContext *c, struct timeval tv) {
* After this function is called, you may use redisContextReadReply to
* see if there is a reply available. */
int redisBufferRead(redisContext *c) {
- char buf[2048];
+ char buf[1024*16];
int nread;
/* Return early when the context has seen an error. */