]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: vars: remove the emptiness tests in callers before pruning
authorWilly Tarreau <w@1wt.eu>
Sun, 15 Sep 2024 21:15:59 +0000 (23:15 +0200)
committerWilly Tarreau <w@1wt.eu>
Sun, 15 Sep 2024 21:44:16 +0000 (23:44 +0200)
commit6e92988e20368e31587f68d297a0f7452c543274
treeca4c15a307bd8c25d90ca6d5f0845ceb4fc6c74e
parent2c1a9c3a4315a589fdd202b3ab7cf2e25bbdfaa7
MINOR: vars: remove the emptiness tests in callers before pruning

All callers of vars_prune_* currently check the list for emptiness.
Let's leave that to vars_prune() itself, it will ease some changes in
the code. Thanks to the previous inlining of the vars_prune() function,
there's no performance loss, and even a very tiny 0.1% gain.
include/haproxy/vars.h
src/http_ana.c
src/stream.c
src/vars.c