MINOR: task: don't decrement then increment the local run queue
authorWilly Tarreau <w@1wt.eu>
Thu, 25 Feb 2021 06:19:45 +0000 (07:19 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 25 Feb 2021 08:44:16 +0000 (09:44 +0100)
commitc9afbb10f5430ffce9aacd020ef46522d7e675cc
treed19b3ac31703f3f548251624ac5854b9d969c350
parent2b363ac092102509a297dfe9e5606a63a76d2cc8
MINOR: task: don't decrement then increment the local run queue

Now we don't need to decrement rq_total when we pick a tack in the tree
to immediately increment it again after installing it into the local
list. Instead, we simply add to the local queue count the number of
globally picked tasks. Avoiding this shows ~0.5% performance gains at
1Mreq/s (2M task switches/s).
src/task.c