MINOR: stick-table: move the task_queue() call outside of the lock
authorWilly Tarreau <w@1wt.eu>
Sat, 27 May 2023 18:32:05 +0000 (18:32 +0000)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Aug 2023 17:03:35 +0000 (19:03 +0200)
commit322e4ab9d2ba41dcdd5bc03ca2a2f6805b5d71bd
treebacb1dd72d88ab5b0718682f34cdae819539c739
parent8178a5211c9db69a578df0f962e4a0a2caadf919
MINOR: stick-table: move the task_queue() call outside of the lock

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

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