Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/phpredis/phpredis.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormichael-grunder <michael.grunder@gmail.com>2013-08-31 22:27:54 +0400
committermichael-grunder <michael.grunder@gmail.com>2013-08-31 22:27:54 +0400
commit8e81c49b55fa978b5d83775008e0dbc114d276c4 (patch)
treef533b16a6c7a2209966aa11b6c9db066b979f042 /library.h
parentb3a64145cb0cdbea61849e142bc387be16e88786 (diff)
Performance increase for MGET
This commit changes the way we construct the MGET command such that we avoid allocating and reallocating the command string pointer for every new key that is added. This means that MGET performance scales in a linear way rather than exponentially.
Diffstat (limited to 'library.h')
-rw-r--r--library.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/library.h b/library.h
index 0ee1f6fe..e2b3bffa 100644
--- a/library.h
+++ b/library.h
@@ -4,6 +4,7 @@ int redis_cmd_format(char **ret, char *format, ...);
int redis_cmd_format_static(char **ret, char *keyword, char *format, ...);
int redis_cmd_format_header(char **ret, char *keyword, int arg_count);
int redis_cmd_append_str(char **cmd, int cmd_len, char *append, int append_len);
+int redis_cmd_init_sstr(smart_str *str, int num_args, char *keyword, int keyword_len);
int redis_cmd_append_sstr(smart_str *str, char *append, int append_len);
int redis_cmd_append_int(char **cmd, int cmd_len, int append);