• Filipe Oliveira (Redis)'s avatar
    Replace usage of _addReplyLongLongWithPrefix with specific bulk/mbulk... · 7b69183a
    Filipe Oliveira (Redis) authored
    
    Replace usage of _addReplyLongLongWithPrefix with specific bulk/mbulk functions to reduce condition checks in hotpath. (#13520)
    
    Instead of adding runtime logic to decide which prefix/shared object to
    use when doing the reply we can simply use an inline method to avoid runtime
    overhead of condition checks, and also keep the code change small.
    Preliminary data show improvements on commands that heavily rely on
    bulk/mbulk replies (example of LRANGE).
    
    ---------
    Co-authored-by: default avatardebing.sun <debing.sun@redis.com>
    7b69183a
networking.c 183 KB