]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: listener: move thr_idx from the bind_conf to the listener
authorWilly Tarreau <w@1wt.eu>
Wed, 6 Mar 2019 14:26:33 +0000 (15:26 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 7 Mar 2019 13:08:26 +0000 (14:08 +0100)
commit0cf33176bdb84fe8633f634620ce543b7ffe15d1
treee34cceb3ca6583bfe7fcff9c701e1703b5d1145b
parent9f1d4e7f7fbd249aed553d8c3b82e1fb35b14746
MINOR: listener: move thr_idx from the bind_conf to the listener

Tests show that it's slightly faster to have this field in the listener.
The cache walk patterns are under heavy stress and having only this field
written to in the bind_conf was wasting a cache line that was heavily
read. Let's move this close to the other entries already written to in
the listener. Warning, the position does have an impact on peak performance.
include/types/listener.h
src/listener.c