• zhaozhao.zz's avatar
    pipeline: do not sdsrange querybuf unless all commands processed · 14c4ddb5
    zhaozhao.zz authored
    This is an optimization for processing pipeline, we discussed a
    problem in issue #5229: clients may be paused if we apply `CLIENT
    PAUSE` command, and then querybuf may grow too large, the cost of
    memmove in sdsrange after parsing a completed command will be
    horrible. The optimization is that parsing all commands in queyrbuf
    , after that we can just call sdsrange only once.
    14c4ddb5
server.h 94.5 KB