• Wang Yuan's avatar
    Optimize the call of prepareReplicasToWrite (#10588) · a9d5cfa9
    Wang Yuan authored
    From #9166, we call several times of prepareReplicasToWrite when propagating
    one write command to replication stream (once per argument, same as we do for
    normal clients), that is not necessary. Now we only call it one time per command
    at the begin of feeding replication stream.
    
    This results in reducing CPU consumption and slightly better performance,
    specifically when there are many replicas.
    a9d5cfa9
replication.c 162 KB