]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM: connection: pack the struct target
authorWilly Tarreau <w@1wt.eu>
Sat, 13 Oct 2012 12:33:58 +0000 (14:33 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 13 Oct 2012 12:33:58 +0000 (14:33 +0200)
commit378e041797340412cedf14b0b0dd3a85e958ba0b
tree1ce359cc8b6486f825e648a8aad6734dc60b276d
parent109e95a1b4e2d21c111eda6d68c818430bff924c
OPTIM: connection: pack the struct target

The struct target contains one int and one pointer, causing it to be
64-bit aligned on 64-bit platforms. By marking it "packed", we can
save 8 bytes in struct connection and as many in struct session on
such platforms.
include/types/connection.h