]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: buffers: make b_xfer() automatically swap buffers when possible
authorWilly Tarreau <w@1wt.eu>
Fri, 20 Jul 2018 16:58:51 +0000 (18:58 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 20 Jul 2018 17:21:43 +0000 (19:21 +0200)
commit7999bfbfd3fd02dcc870e58e738897aa7f89bbe5
treea132d2449491a17b05886c7c3b14a9676ebf21f9
parenta56a6def91dfaf6f1b879e31d2350ec58aada93e
MEDIUM: buffers: make b_xfer() automatically swap buffers when possible

Whenever it's possible to avoid a copy, b_xfer() will simply swap the
buffer's heads without touching the data. This has brought the performance
back from 140 kH/s to 202 kH/s on the test case.
include/common/buf.h