Re:A multithreaded fork of Redis that is faster
by femto113 on Monday October 07, 2019 @03:29PM
(#21184978)
That was my thinking as well, though taking a peek at the actual code suggests that there's a pretty deep expectation that the client is speaking strings, e.g. in code that handles the ZRANGE command[1] I see
if (c->argc == 5 && !strcasecmp(c->argv[4]->ptr,"withscores"))
I guess this means someone would have to tackle creating an intermediate binary format first, rewriting the command handlers to expect that format, and then making client libraries that can produce the format. Perhaps still worth it in the end, but not trivial.
[1] https://github.com/antirez/redis/blob/unstable/src/t_zset.c#...