]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: server: slightly reorder fields in the struct to plug holes
authorWilly Tarreau <w@1wt.eu>
Sun, 24 Aug 2025 10:25:51 +0000 (12:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 16 Sep 2025 07:23:46 +0000 (09:23 +0200)
commit8df81b6fccf63609be6bfcaf0721afef19d75cbf
tree635a358b440da06a539095cefa63a9d0caa8395a
parentd18d972b1f430684ff90683703de4e18650f0615
CLEANUP: server: slightly reorder fields in the struct to plug holes

The struct server still has a lot of holes and padding that make it
quite big. By moving a few fields aronud between areas which do not
interact (e.g. boot vs aligned areas), it's quite easy to plug some
of them and/or to arrange larger ones which could be reused later with
a bit more effort. Here we've reduced holes by 40 bytes, allowing the
struct to shrink by one more cache line (64 bytes). The new size is
3840 bytes.
include/haproxy/server-t.h