]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stick-table: do not take a lock to update t->current anymore.
authorWilly Tarreau <w@1wt.eu>
Tue, 11 Oct 2022 14:19:35 +0000 (16:19 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 12 Oct 2022 12:19:05 +0000 (14:19 +0200)
commit996f1a51247a43fa236518db067020408131172a
tree2ff44a700bc3d503a7847d3f471f118eaadf5331
parent47f229702ef6ae08e98721dd4e4d0e386be0bb55
MEDIUM: stick-table: do not take a lock to update t->current anymore.

We don't need to be protected by the table's lock when touching t->current
if we do it using atomics, and that's great because it allows us to have
a cleaner stksess_new() that doesn't require a lock either, and to avoid
manipulating pools under a lock.

That's another 1% performance gain from 2.07 to 2.10M req/s under 48
threads.
src/stick_table.c