haproxy/include
Willy Tarreau 1e56c70cc9 OPTIM: task: limit the impact of memory barriers in taks_remove_from_task_list()
In this function we end up with successive locked operations then a
store barrier, and in addition the compiler has to emit less efficient
code due to a longer jump. There's no need for absolutely updating the
tasks_run_queue counter before clearing the task's leaf pointer, so
let's swap the two operations and benefit from a single barrier as much
as possible. This code is on the hot path and shows about half a percent
of improvement with 8 threads.
2019-03-07 18:44:12 +01:00
..
common MINOR: tools: implement my_flsl() 2019-03-07 13:48:04 +01:00
import BUILD: threads/plock: fix a build issue on Clang without optimization 2017-11-20 21:06:35 +01:00
proto OPTIM: task: limit the impact of memory barriers in taks_remove_from_task_list() 2019-03-07 18:44:12 +01:00
types MINOR: listener: move thr_idx from the bind_conf to the listener 2019-03-07 14:08:26 +01:00