]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stream: don't prune variables if the list is empty
authorWilly Tarreau <w@1wt.eu>
Sun, 28 Oct 2018 12:44:36 +0000 (13:44 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 28 Oct 2018 12:46:47 +0000 (13:46 +0100)
commitcda7f3f5c2f2bb0b9d9e74e0e3ec11df27bb4c6d
tree566117d2efeed25f4a15a85208ffb18654373030
parent80512b186fd7f4ef3bc7d9c92b281c549d72aa8a
MINOR: stream: don't prune variables if the list is empty

The vars_prune() and vars_init() functions involve locking while most of
the time there is no variable at all in streams nor sessions. Let's check
for emptiness before calling these functions. Simply doing this has
increased the multithreaded performance from 1.5 to 5% depending on the
workload.
src/proto_http.c
src/stream.c