]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: buffers: simplify b_contig_space()
authorWilly Tarreau <w@1wt.eu>
Fri, 20 Jul 2018 14:07:42 +0000 (16:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 20 Jul 2018 17:21:43 +0000 (19:21 +0200)
commitab322d4fd45c51fa38b3128d3ef76f1ff4614009
tree8e2079fa61c3b5c7f42b340d4b8e8287ba7774bc
parentf495fc460efe853d5fa9812c95e5a4601c2341ca
MINOR: buffers: simplify b_contig_space()

This function is used a lot in block copies and is needlessly
complicated since it still uses pointer arithmetic. Let's fall
back to regular offsets and simplify it. This removed around
23 bytes from b_putblk() and it removed any conditional jump.
include/common/buf.h