]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM: listener: optimize cache-line packing for struct listener
authorWilly Tarreau <w@1wt.eu>
Sun, 3 Feb 2019 09:28:24 +0000 (10:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 4 Feb 2019 04:09:14 +0000 (05:09 +0100)
commit4ed84c96cf1f523f56cb869e1b98afa376139920
treee62ff3223d1ffb643dc8d12ddac13572584bd220
parentfc647360e0ec520cf824c53fb023fff6fb4846ef
OPTIM: listener: optimize cache-line packing for struct listener

Some unused fields were placed early and some important ones were on
the second cache line. Let's move the proto_list and name closer to
the end of the structure to bring accept() and default_target() into
the first cache line.
include/types/listener.h