News for hackers. Stuff that matters.
Re:A multithreaded fork of Redis that is faster by axaxs on Monday October 07, 2019 @02:14PM (#21184136)
Why not just offer both?
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"))
and a quick grep suggests that's a common pattern

    % grep argv src/*.c | grep -c -e 'str\(case\)*cmp'
    482
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#...