commit | 996f1a51247a43fa236518db067020408131172a | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Oct 11 16:19:35 2022 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Wed Oct 12 14:19:05 2022 +0200 |
tree | 2ff44a700bc3d503a7847d3f471f118eaadf5331 | |
parent | 47f229702ef6ae08e98721dd4e4d0e386be0bb55 [diff] |
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.