]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM: sink: don't waste time calling sink_announce_dropped() if busy
authorWilly Tarreau <w@1wt.eu>
Thu, 18 Sep 2025 07:07:35 +0000 (09:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 18 Sep 2025 07:07:35 +0000 (09:07 +0200)
commit08c6bbb5424875dc4ea5ef1a536eeb8b50ce5805
tree222d0c10f58f99911cb61c0626ff958fa3e6b066
parent4431e3bd26f5e7af6e229d1d06bbc2749c2272c0
OPTIM: sink: don't waste time calling sink_announce_dropped() if busy

If we see that another thread is already busy trying to announce the
dropped counter, there's no point going there, so let's just skip all
that operation from sink_write() and avoid disturbing the other thread.
This results in a boost from 244 to 262k req/s.
include/haproxy/sink.h