]> git.ipfire.org Git - thirdparty/haproxy.git/commit
DIET/MINOR: http: reduce the size of struct http_txn by 8 bytes
authorWilly Tarreau <w@1wt.eu>
Fri, 6 Dec 2013 22:43:17 +0000 (23:43 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 9 Dec 2013 15:06:22 +0000 (16:06 +0100)
commitc8987b3664a703440ed80a2086d262898873d173
treee91c294fe6a113271ed9ac7826120d04b6951456
parent721854f0ac442754aa315b270e8fb62ef6bf615a
DIET/MINOR: http: reduce the size of struct http_txn by 8 bytes

Here again we had some oversized and misaligned entries. The method
and the status don't need 4 bytes each, and there was a hole after
the status that does not exist anymore. That's 8 additional bytes
saved from http_txn and as much for the session.

Also some fields were slightly moved to present better memory access
patterns resulting in a steady 0.5% performance increase.
include/types/proto_http.h
src/proto_http.c