]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: epoll: place the struct epoll_event in the stack
authorWilly Tarreau <w@1wt.eu>
Thu, 20 Feb 2020 10:23:43 +0000 (11:23 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 21 Feb 2020 10:21:12 +0000 (11:21 +0100)
commit902871dd07db6e2e7a7139be5a571b4078fe49c3
tree0dc08f494a123ebc2abde42c7fdf49f25ae1eccd
parent7c9d0e1b20ec5e70089be1d526a75f7092b54a6e
CLEANUP: epoll: place the struct epoll_event in the stack

Historically we used to have a global epoll_event for various
manipulations involving epoll_ctl() and when threads were added,
this was turned to a thread_local, which is needlessly expensive
since it's just a temporary variable. Let's move it to a local
variable wherever it's called instead.
src/ev_epoll.c