]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DIET/MINOR: proxy: rearrange a few fields in struct proxy to save 16 bytes
authorWilly Tarreau <w@1wt.eu>
Fri, 6 Dec 2013 20:29:13 +0000 (21:29 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 9 Dec 2013 15:06:21 +0000 (16:06 +0100)
commit8379c17adfb66a50347559427b743db68a1c8e48
tree25abc4d0e0824e73c0d7bc9af5bedb20a577fe33
parentf6502c5062334b3b10a31b6056af8a9b9e0e92ff
DIET/MINOR: proxy: rearrange a few fields in struct proxy to save 16 bytes

Turn the proxy state to a packed enum (1 char), same for the proxy mode,
and store the capabitilies as a char. These 3 ints can now fill the hole
after obj_type and save 8 bytes in the proxy struct. Moving the maxconn
value just after, which is frequently accessed and was in a block of 3
ints saved another 8 bytes.
include/types/proxy.h