Yahoo Groups archive

Milter-greylist

Index last updated: 2026-04-28 23:32 UTC

Message

Re: [milter-greylist] Re: Limiting resident memory usage

2006-11-07 by Oliver Fromme

AIDA Shinra wrote:
 > Matt Kettler wrote:
 > > > 
 > > > But this:
 > > > 
 > > >   acl greylist domain /[0-9][0-9]*\-[0-9][0-9]*\-[0-9][0-9]*/
 > > >   acl greylist domain /[0-9][0-9]*\.[0-9][0-9]*\.[0-9][0-9]*/
 > > > 
 > > > which I still firmly believe are terrible for performance.
 > > 
 > > Agreed. Those could be terrible, at least for some inputs.

No, they're perfectly OK.

 > A little offtopic: they are not too bad. No backtracking for any
 > input. * don't do harm if * part and its following part are mutually
 > exclusive. For example:
 > \[.*\] causes backtracking
 > \[[^]]*\] doesn't cause any backtracking

It depends entirely on the implementation of the regex
library.  You can implement them in a way that an NFA
is built that _never_ requires any backtracking for "*"
(including both cases mentioned above).

See any good book on formal languages and automatons.

Best regards
   Oliver

-- 
Oliver Fromme,  secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing
Dienstleistungen mit Schwerpunkt FreeBSD: http://www.secnetix.de/bsd
Any opinions expressed in this message may be personal to the author
and may not necessarily reflect the opinions of secnetix in any way.

"C++ is over-complicated nonsense. And Bjorn Shoestrap's book
a danger to public health. I tried reading it once, I was in
recovery for months."
        -- Cliff Sarginson

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.