]> git.kaiwu.me - haproxy.git/commit
OPTIM: pattern: use ebst_lookup_len() when possible
authorWilly Tarreau <w@1wt.eu>
Mon, 30 Nov 2026 19:49:54 +0000 (20:49 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 1 Dec 2026 07:17:13 +0000 (08:17 +0100)
commitb70c8fc2f5dd2e59efbe40092f4789cccd525ad3
tree4475ca140aac2a64dd28624b4432d16cbf636a1f
parent903405ce3c3c09352503423cb67117a7e95a518d
OPTIM: pattern: use ebst_lookup_len() when possible

In pat_match_str(), we're looking up strings using ebst_lookup(),
but we know the length and already have ebst_lookup_len() that is
made for this purpose, so better rely on it since it's a bit faster.
This speeds up request rate by 1% on configs with a few tens of
string lookups.
src/pattern.c