]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: proxy: slightly reorganize fields to plug some holes
authorWilly Tarreau <w@1wt.eu>
Sun, 24 Aug 2025 10:38:18 +0000 (12:38 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 16 Sep 2025 07:23:46 +0000 (09:23 +0200)
commit7773d87ea6f9a17661be4c144bbe35e141d20a2e
tree47ea4592c3ab80a20d3a2a846a7e2a5da1c92e35
parent8df81b6fccf63609be6bfcaf0721afef19d75cbf
CLEANUP: proxy: slightly reorganize fields to plug some holes

The proxy struct has several small holes that deserved being plugged by
moving a few fields around. Now we're down to 3056 from 3072 previously,
and the remaining holes are small.

At the moment, compared to before this series, we're seeing these
sizes:

    type\size   7d554ca62   current  delta
    listener       752        704     -48  (-6.4%)
    server        4032       3840    -192  (-4.8%)
    proxy         3184       3056    -128  (-4%)
    stktable      3392       3328     -64  (-1.9%)

Configs with many servers have shrunk by about 4% in RAM and configs
with many proxies by about 3%.
include/haproxy/proxy-t.h