diff options
author | michael-grunder <michael.grunder@gmail.com> | 2013-08-31 22:27:54 +0400 |
---|---|---|
committer | michael-grunder <michael.grunder@gmail.com> | 2013-08-31 22:27:54 +0400 |
commit | 8e81c49b55fa978b5d83775008e0dbc114d276c4 (patch) | |
tree | f533b16a6c7a2209966aa11b6c9db066b979f042 /library.h | |
parent | b3a64145cb0cdbea61849e142bc387be16e88786 (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.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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); |