trafficserver-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brian Geffon <bri...@apache.org>
Subject Re: Remap/regex_remap consolidation
Date Wed, 26 Mar 2014 08:02:10 GMT
Thomas, I somewhat agree: my guess would be the additional regexes would
likely cancel any performance gain there.

Does anyone else have feedback or comments?

Brian

On Tuesday, March 25, 2014, Thomas Jackson <jacksontj.89@gmail.com> wrote:

> Another consideration for having >1 regex (which may or may not be
> premature optimization) is that if you have seperate regexes we can create
> hash maps similar to how maps work (a hashmap of domain_regex -> list of
> path regexes) which would make overall remap performance faster/better.
>
>
> On Tue, Mar 25, 2014 at 9:50 PM, Brian Geffon <briang@apache.org<javascript:_e(%7B%7D,'cvml','briang@apache.org');>
> > wrote:
>
>> Right.
>>
>>
>> On Tuesday, March 25, 2014, Leif Hedstrom <zwoop@apache.org<javascript:_e(%7B%7D,'cvml','zwoop@apache.org');>>
>> wrote:
>>
>>>
>>> On Mar 25, 2014, at 7:51 PM, Brian Geffon <briangeffon@gmail.com> wrote:
>>>
>>> > What Thomas called Question #1 -- 1 Regex.
>>> >
>>>
>>> Makes sense to have them combined. Assuming groups etc. works, that
>>> allows you to do e.g.
>>>
>>>    regex_map http://(.*)\.ogre\.com/([^/]+)/(.*)  http://$2/$1/$3
>>>
>>>
>>> or some such. i.e. take parts from the path match and use as the host,
>>> and vice versa. Right? :)
>>>
>>> Cheers,
>>>
>>> -- Leif
>>>
>>>
>

Mime
View raw message