On Mon, 17 Nov 2003 19:19:00 -0800, Robert Menschel <[EMAIL PROTECTED]> writes:
> Possibility 1: combine rules. If you can combine 10 tests into a single > rule, > > uri rulename /(?:spammer1|spammer2|s3|s4|s5|s6|s7|s8|s9|s10)\.com/i > then you'll have only 480 rules, not 4800. I don't know if this will have > any impact, but maybe... I have not benchmarked this, but it may be a lose. The perl regexp engine uses a substring optimization, where it examines the regexp to identify if there is a substring that *must* occur. Only if it occurs does it proceed to do a slow regexp search. Combining rules like this reduces fixed regexp overhead, but may make that optimization slower. You'd have to benchmark it. Scott ------------------------------------------------------- This SF.net email is sponsored by: SF.net Giveback Program. Does SourceForge.net help you be more productive? Does it help you create better code? SHARE THE LOVE, and help us help YOU! Click Here: http://sourceforge.net/donate/ _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk