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 <[email protected]> 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 > <[email protected]<javascript:_e(%7B%7D,'cvml','[email protected]');> > > wrote: > >> Right. >> >> >> On Tuesday, March 25, 2014, Leif Hedstrom >> <[email protected]<javascript:_e(%7B%7D,'cvml','[email protected]');>> >> wrote: >> >>> >>> On Mar 25, 2014, at 7:51 PM, Brian Geffon <[email protected]> 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 >>> >>> >
