procmail
[Top] [All Lists]

Re: Scoring by size ???

2003-09-29 06:10:20
On Sun, Sep 28, 2003 at 07:10:39PM -0700, Bart Schaefer wrote:
Adding to what David T. said:  You're only making procmail do extra work
in the case where Date: is present but From_ is not, which you believe is
an unlikely circumstance.  On the other hand, checking for five characters
anchored at the start of the search buffer is going to be so fast that I
think you might as well put the ^^From test first anyway.

Thanks, Bart, and thanks, David.  (Yes, the saving of effort in
my example is sorely limited by the nature of the example, of course.
And, as you say, Bart, other factors such as regex complexity also
come into the calculation of how best to optimize.  Still, I
don't think any of us is arguing that forgetting all about
optimizing is better than remembering it.)  :-)

-- 
dman

_______________________________________________
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>