Re: [Pound Mailing List] multiple URLs configured on Pound not working

Qingshan Xie <xieq_49-/[email protected]>
Newsgroups gmane.comp.web.pound.general
Message-ID <[email protected]>
Hello Joe, 


    how many lines of URLs for OrURLs, or what is the limit of OrURLs?  Could it handle ~1000 lines?


Thanks, Q.Xie



________________________________
 From: Joe Gooch <[email protected]>
To: "'[email protected]'" <[email protected]> 
Sent: Wednesday, July 3, 2013 8:14 AM
Subject: RE: [Pound Mailing List] multiple URLs configured on Pound not working
 

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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.