trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tomr <...@equalit.ie>
Subject basic regex_map vs map performance
Date Thu, 14 Jul 2016 06:41:37 GMT
Hi All,

Simple perf question, hopefully easy enough to answer that I don't need to spin up a test
environment!

My options are:

 map  http://site.com      http://origin.site.com
 map  http://www.site.com  http://origin.site.com

vs...

 regex_map http://^(www\.)?site\.com$/  http://origin.site.com

We have approx 1000 similar rules. Intuitively I would guess that using 2 map rules each time
would be a performance win over using a single regex_map rule. Is that likely to be:
- correct?
- incorrect?
- "it depends" / not that simple and I really should test it?

Thanks in advance,
Tom




Mime
View raw message