Note this could be done the same way as remap - put all the literals in one 
search structure and check for that first. If there's a match, it's for a 
specific line in the file and one need only linear search the regular 
expressions before that line. Anecdotally I've been told you can improve remap 
performance by expanding regular expressions into literals if the set of values 
isn't too large (e.g. "*.swoc.io" in practice means "zwoop.swoc.io", 
"susan.swoc.io" and "amc.swoc.io").

-----Original Message-----
From: James Peach <jpe...@apache.org> 
Sent: Monday, June 19, 2023 12:09 AM
To: dev@trafficserver.apache.org
Subject: Re: [Discussion/Proposal] Regex support in sni.yaml

It’s not made explicit in the documentation, but it looks like the policy match 
depends on the order of entries, so you’d have to make a linear scan doing 
regex matches, which makes it more attractive to use regex matching to reduce 
the size of the list.

Reply via email to