]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: connection: move the send_proxy offset to the connection
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Oct 2013 19:10:08 +0000 (21:10 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 9 Dec 2013 14:40:23 +0000 (15:40 +0100)
commitb8020cefed5d87db7df12c89bb4be6b39d756abd
tree426b12a48ed555ffab0231f635d181a16b0e2c85
parent32e3c6a6079d15abed4075308afddaf2590f627d
MEDIUM: connection: move the send_proxy offset to the connection

Till now the send_proxy_ofs field remained in the stream interface,
but since the dynamic allocation of the connection, it makes a lot
of sense to move that into the connection instead of the stream
interface, since it will not be statically allocated for each
session.

Also, it turns out that moving it to the connection fils an alignment
hole on 64 bit architectures so it does not consume more memory, and
removing it from the stream interface was an opportunity to correctly
reorder fields and reduce the stream interface's size from 160 to 144
bytes (-10%). This is 32 bytes saved per session.
include/proto/connection.h
include/proto/stream_interface.h
include/types/connection.h
include/types/stream_interface.h
src/backend.c
src/stream_interface.c