]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: server: switch conf.name to cebis_tree
authorWilly Tarreau <w@1wt.eu>
Mon, 7 Jul 2025 13:33:40 +0000 (15:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 16 Sep 2025 07:23:46 +0000 (09:23 +0200)
commit413e903a22231f7e19efcd23a832e7928bcfb8b6
treee7364c6a623a3b3e92c763afa260a50d83733f6b
parent0e99f64fc68341c37e21249f654f1a3b801c0492
MEDIUM: server: switch conf.name to cebis_tree

This is used to index the server name and it contains a copy of the
pointer to the server's name in <id>. Changing that for a ceb_node placed
just before <id> saves 32 bytes to the struct server, which remains 3968
bytes large due to alignment. The proxy struct shrinks by 8 bytes to 3144.

It's worth noting that the current way duplicate names are handled remains
based on the previous mechanism where dups were permitted. Ideally we
should now reject them during insertion and use unique key trees instead.
include/haproxy/proxy-t.h
include/haproxy/server-t.h
src/cfgparse.c
src/server.c