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.
if (!pat_match_ensure_str(smp))
return NULL;
- node = ebst_lookup(&expr->pattern_tree, smp->data.u.str.area);
+ node = ebst_lookup_len(&expr->pattern_tree, smp->data.u.str.area, smp->data.u.str.data);
while (node) {
elt = ebmb_entry(node, struct pattern_tree, node);