commit | 5b3927531145384bad8d2b46ca21f017afde81c7 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Fri Jun 18 20:12:11 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Tue Jun 22 18:57:18 2021 +0200 |
tree | 30e5c3517af26dbf2e51914159db851d724e1a72 | |
parent | 9a6d0ddbd6788a05c6730bf0e9e8550d7c5b11aa [diff] |
MEDIUM: queue: unlock as soon as possible There's no point keeping the server's queue lock after seeing that the server's queue is empty, just like there's no need to keep the proxy's lock when its queue is empty. This patch checks for emptiness and releases these locks as soon as possible. With this the performance increased from 524k to 530k on 16 threads with round-robin.