• Filipe Oliveira (Redis)'s avatar
    Optimize the HELLO command reply (#13490) · a31b516e
    Filipe Oliveira (Redis) authored
    # Overall improvement
    
    TBD ( current is approximately 6% on the achievable ops/sec), coming
    from:
    
    - In case of no module we can skip 1.3% CPU cycles on dict Iterator
    creation/deletion
    - Use addReplyBulkCBuffer instead of addReplyBulkCString to avoid
    runtime strlen overhead within HELLO reply on string constants.
    
    ## Optimization 1: In case of no module we can skip 1.3% CPU cycles on
    dict Iterator creation/deletion.
    
    ## Optimization 2: Use addReplyBulkCBuffer instead of
    addReplyBulkCString to avoid runtime strlen overhead within HELLO reply
    on string constants.
    a31b516e
networking.c 179 KB