commit | cda7f3f5c2f2bb0b9d9e74e0e3ec11df27bb4c6d | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sun Oct 28 13:44:36 2018 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Sun Oct 28 13:46:47 2018 +0100 |
tree | 566117d2efeed25f4a15a85208ffb18654373030 | |
parent | 80512b186fd7f4ef3bc7d9c92b281c549d72aa8a [diff] |
MINOR: stream: don't prune variables if the list is empty The vars_prune() and vars_init() functions involve locking while most of the time there is no variable at all in streams nor sessions. Let's check for emptiness before calling these functions. Simply doing this has increased the multithreaded performance from 1.5 to 5% depending on the workload.