]> git.kaiwu.me - haproxy.git/commit
OPTIM/MINOR: move struct sockaddr_storage to the tail of structs
authorWilly Tarreau <w@1wt.eu>
Fri, 21 Oct 2011 16:51:57 +0000 (18:51 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 23 Oct 2011 17:08:46 +0000 (19:08 +0200)
commit7b81563443963571f909503863866ea5b76a3912
tree159c6ef269e350d5b6ca5f37e06e870d3975de91
parent37229df9c118a410c9e677c56d870ef5c743c202
OPTIM/MINOR: move struct sockaddr_storage to the tail of structs

Struct sockaddr_storage is huge (128 bytes) and severely impacts the
cache. It also displaces other struct members, causing them to have
larger relative offsets. By moving these few occurrences to the end
of the structs which host them, we can reduce the code size by no less
than 2 kB !
include/types/protocols.h
include/types/proxy.h
include/types/server.h