[OPTIM] move some rarely used fields out of fdtab
authorWilly Tarreau <w@1wt.eu>
Sun, 18 Oct 2009 05:25:52 +0000 (07:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 18 Oct 2009 06:17:33 +0000 (08:17 +0200)
commit8d5d77efc3aa369df73223c778a0ecd637eafdbf
tree16ccf91275c420d4a3792e1df0fbcf8ed696dfe3
parentff9d5ba72187f47bb9bca08e4be2ae23e5a944ff
[OPTIM] move some rarely used fields out of fdtab

Some rarely information are stored in fdtab, making it larger for no
reason (source port ranges, remote address, ...). Such information
lie there because the checks can't find them anywhere else. The goal
will be to move these information to the stream interface once the
checks make use of it.

For now, we move them to an fdinfo array. This simple change might
have improved the cache hit ratio a little bit because a 0.5% of
performance increase has measured.
include/types/fd.h
src/checks.c
src/client.c
src/fd.c
src/haproxy.c
src/proto_tcp.c
src/proto_uxst.c
src/stream_sock.c