commit | 7999bfbfd3fd02dcc870e58e738897aa7f89bbe5 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Jul 20 18:58:51 2018 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Fri Jul 20 19:21:43 2018 +0200 |
tree | a132d2449491a17b05886c7c3b14a9676ebf21f9 | |
parent | a56a6def91dfaf6f1b879e31d2350ec58aada93e [diff] |
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.