Title: Re: body rule speed
I presume you mean it no longer applies that particular rule to the lines of text after the first hit of that rule. This new way does that as well. Did the 'first way' not keep track of whether the rule hit already?
 
dale


From: Theo Van Dinter [mailto:[EMAIL PROTECTED]
Sent: Tue 8/30/2005 9:00 AM
To: [email protected]
Subject: Re: body rule speed

On Tue, Aug 30, 2005 at 06:29:20AM -0700, Dale Luck wrote:
> Instead of the present process:

> loop on all rules
> {
>      loop on all lines in msg body
>      {
>            apply regex.
>            if hit, skip to next rule.
>      }
> }

> loop on all lines in msg body
> {
>      study line
>      loop on all rules
>      {
>            if using_rule{rule} apply regex;
>            if hit, using_rule{rule} = 0;
>      }
> }

Ah, you mean the original way. ;)   In short, it was found to be faster
to do the first one, since we don't have to run the same rule over and
over again.  We exit out on the first hit per rule which was found to
be a huge speed increase.

--
Randomly Generated Tagline:
It could be one of these chemicals here that makes him so smart.  Lisa,
 maybe you should try some of this.

                -- Homer Simpson
                   Bart the Genius

Reply via email to