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
pgpg5r0kmJG8S.pgp
Description: PGP signature
