procmail
[Top] [All Lists]

Re: search of header and body speeds?

2001-08-14 23:40:24
From: John Conover <conover(_at_)rahul(_dot_)net>

Which construct is a faster implementation:

    :0
    * a header
    * another header
    { }

    :0 B
    * something in the body
    * somethine else in the body
    { }

Or:    
    
    :0
    * H a header
    * H another header
    * B something in the body
    * B somethine else in the body
    { }

I measured it, and didn't get much difference.

Well, for one, they're not doing quite the same thing.  Your first
set would need an `A' flag to keep it from being triggered by
all mail, not simply mail that was caught by the first recipe's
conditions.  (See man procmailrc.)

That said, I don't know which would be faster once they are
made to perform equivalently.

-- 
(use dman+noacks(_at_)nomotek(_dot_)com to avoid weekly auto-ack)
_______________________________________________
procmail mailing list
procmail(_at_)lists(_dot_)RWTH-Aachen(_dot_)DE
http://MailMan.RWTH-Aachen.DE/mailman/listinfo/procmail

<Prev in Thread] Current Thread [Next in Thread>