]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM: buffers: align the buffer pool to 64
authorWilly Tarreau <w@1wt.eu>
Mon, 11 Aug 2025 15:31:08 +0000 (17:31 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 11 Aug 2025 17:55:30 +0000 (19:55 +0200)
commit77335f52fca6c3cdf740baebc145d998f836fd6d
tree4cb5d2c6b869ac58978f84841b1c232232a9e0a4
parentc471de7964ff44f1b4abf8d906eff744881bf08d
OPTIM: buffers: align the buffer pool to 64

This struct is used by memcpy() and friends, particularly during the
early recv() and send(). By keeping it 64-byte aligned, we let the
underlying libs/kernel use optimal operations (e.g.  AVX512) for memory
copies while right now it's just random (buffers are found to be equally
aligned to 32 and 64 in practice).
src/dynbuf.c