MINOR: task: introduce a thread-local "sched" variable for local scheduler stuff
authorWilly Tarreau <w@1wt.eu>
Tue, 24 Sep 2019 06:25:15 +0000 (08:25 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 24 Sep 2019 09:23:30 +0000 (11:23 +0200)
commitd022e9c98b87102cc57737dd8ca18f78d6fc0fbb
treea1d7fe1cc4bae131d26f8f25bbd9965a1c234ed8
parentd66d75656e4d864595567d1c3bbaffbc515fb0a0
MINOR: task: introduce a thread-local "sched" variable for local scheduler stuff

The aim is to rassemble all scheduler information related to the current
thread. It simply points to task_per_thread[tid] without having to perform
the operation at each time. We save around 1.2 kB of code on performance
sensitive paths and increase the request rate by almost 1%.
include/proto/task.h
include/types/task.h
src/debug.c
src/haproxy.c
src/task.c