]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stick-table: move the task_wakeup() call outside of the lock
authorWilly Tarreau <w@1wt.eu>
Sat, 27 May 2023 18:35:15 +0000 (18:35 +0000)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Aug 2023 17:03:35 +0000 (19:03 +0200)
commit73b1dea4d104d38e22cc898cf12499a778bd754e
tree36a416f3668810943c5d65d390d23507fa6a9cdb
parent322e4ab9d2ba41dcdd5bc03ca2a2f6805b5d71bd
MINOR: stick-table: move the task_wakeup() call outside of the lock

The write lock in stktable_touch_with_exp() is quite expensive and should
be shortened as much as possible. There's no need for it when calling
task_wakeup() so let's move it out.

On a 80-thread machine with a peers section, the request rate increased
from 397k to 415k rps.
src/stick_table.c