]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tasks: only visit filled task slots after processing them
authorWilly Tarreau <w@1wt.eu>
Mon, 6 Nov 2017 07:36:53 +0000 (08:36 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 6 Nov 2017 10:20:11 +0000 (11:20 +0100)
commit9d4b56b88e01ac874a158f9bd4dd8c804ba61875
tree8c422f0dd25be407dd7546de92c421e233a1db3e
parent88ac59be4d7540bb7b6087397eb2ed9aa5f57066
MINOR: tasks: only visit filled task slots after processing them

process_runnable_tasks() needs to requeue or wake up tasks after
processing them in batches. By only refilling the existing ones, we
avoid revisiting all the queue. The performance gain is measurable
starting with two threads, where the request rate climbs to 657k/s
compared to 644k.
src/task.c