• Wang Yuan's avatar
    Remove unnecessary replication backlog memory copy (#9157) · 4fa3e230
    Wang Yuan authored
    in the past, the reply list was a list of sds objects, so this didn't have any overhead,
    but now addReplySds just copies the data from the sds and frees it, so there's no
    need to make a copy of the buffer before copying again.
    this reduces an excessive allocation and free and a memcpy.
    4fa3e230
replication.c 151 KB