]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: fd: place the lock at the beginning of struct fdtab
authorWilly Tarreau <w@1wt.eu>
Sun, 26 Nov 2017 09:41:47 +0000 (10:41 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 26 Nov 2017 10:10:53 +0000 (11:10 +0100)
commit5809052ae1066b0af9d36ae63608621f75d260f6
treeb62f83e5f7f1e91072f3ea1a985f01e3d2d50651
parentfd5efb59364056e23b0dd9bded47b0a6c523b90d
CLEANUP: fd: place the lock at the beginning of struct fdtab

The struct is not cache line aligned but at least, every time the lock
will appear in the same cache line as the fd it will benefit from being
accessed first. This improves the performance by about 2% on fd-intensive
workloads with 4 threads.
include/types/fd.h