commit | 61ecf2838991a659127e90c00f8302e430e5076b | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Wed Sep 08 15:20:45 2021 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Wed Sep 08 15:44:45 2021 +0200 |
tree | 78504370177a37c5dc738e016ab16d4b82b6dc67 | |
parent | dc72fbb8e8cb895572c51389e1f8882be0fa89af [diff] |
OPTIM: vars: only takes the variables lock on shared entries There's no point taking the variables locks for sess/txn/req/res contexts since these ones always run inside the same thread anyway. This patch conditions the lock on the variable's scope to avoid flushing cache lines when not needed. This showed an improvement of ~5% on a 16-thread machine with 12 variables.