commit | 9d4b56b88e01ac874a158f9bd4dd8c804ba61875 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Mon Nov 06 08:36:53 2017 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Mon Nov 06 11:20:11 2017 +0100 |
tree | 8c422f0dd25be407dd7546de92c421e233a1db3e | |
parent | 88ac59be4d7540bb7b6087397eb2ed9aa5f57066 [diff] |
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.