Stage for upstream 2.7b now has an alternative method.

OrURLs
  URL "Url1"
  URL "Url2"
  ...
End

Patterns are combined into a single ((url1)|(url2)) string and compiled as one 
pattern.
Joe

> -----Original Message-----
> From: Robert Segall [mailto:[email protected]]
> Sent: Tuesday, July 02, 2013 10:21 AM
> To: [email protected]
> Subject: Re: [Pound Mailing List] multiple URLs configured on Pound not
> working
> 
> On Mon, 2013-07-01 at 20:31 +0000, Joe Gooch wrote:
> > ... Then it’s a single regex match.  (Albeit a complicated one… I’ve
> > never benchmarked 1000 regex_matches vs a pattern with 1000 ors)
> 
> A regex match runs in O(len(S)), where S is the string being matched.
> The complexity of the pattern makes no real difference, it is compiled
> to an optimised finite state machine. You pay a few bytes in memory
> usage, but at runtime it is just a table look-up.
> 
> 1000 regex matches would be 1000 times slower!
> --
> Robert Segall
> Apsis GmbH
> Postfach, Uetikon am See, CH-8707
> Tel: +41-32-512 30 19
> 
> 
> --
> To unsubscribe send an email with subject unsubscribe to
> [email protected].
> Please contact [email protected] for questions.

Reply via email to