]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: fd: remove unused cb->b pointers in the struct fdtab
authorWilly Tarreau <w@1wt.eu>
Sat, 12 May 2012 22:35:44 +0000 (00:35 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 12 May 2012 22:35:44 +0000 (00:35 +0200)
commitb147a8382a9a740b511da35976102331ea318ca0
tree9bacc1d449ee3affd0feb47814e16874800a05ec
parent3d2f16f3c3a1a5a906f904b3bc7e435ce232668e
CLEANUP: fd: remove unused cb->b pointers in the struct fdtab

These pointers were used to hold pointers to buffers in the past, but
since we introduced the stream interface, they're no longer used but
they were still sometimes set.

Removing them shrink the struct fdtab from 32 to 24 bytes on 32-bit machines,
and from 52 to 36 bytes on 64-bit machines, which is a significant saving. A
quick tests shows a steady 0.5% performance gain, probably due to the better
cache efficiency.
include/types/fd.h
src/checks.c
src/proto_tcp.c
src/proto_uxst.c
src/session.c