]> git.kaiwu.me - haproxy.git/commit
CLEANUP/MINOR: ncbmbuf: avoid noop memcpy when data ends on wrapping
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 19 Nov 2026 09:39:47 +0000 (10:39 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 19 Nov 2026 14:08:36 +0000 (15:08 +0100)
commit102fad424f3fa7e898f7f0ca99afe46fe052a2c2
tree896799647e0ca6f8e36c7a93a0255240532db0f6
parent900b7b952c74655d6a4170eb9a26f7370d32631f
CLEANUP/MINOR: ncbmbuf: avoid noop memcpy when data ends on wrapping

This patch is similar to the previous one applied to ncbuf. It changes
the comparison operator used against wrapping address during an add
operation, so that data fitting with the buffer end are inserted with a
single memcpy invocation.
src/ncbmbuf.c