http://bugzilla.spamassassin.org/show_bug.cgi?id=3637





------- Additional Comments From [EMAIL PROTECTED]  2004-07-30 22:35 -------
okay, the UNRESOLVED_TEMPLATE works fine now... but there is a problem still
with running the SUSPICIOUS_RECIPS rule.  

with 3000  bcc lines, approx 8000 recips

[EMAIL PROTECTED] sa3]# time cat msg.txt | spamc
[snip]
real    1m49.610s
user    0m0.000s
sys     0m0.050s

scan time is directly related to the number of Bcc lines (i assume To or Cc are
the same).. and the more you get in there, the higher that time gets.  I set it
to 3000 in order to stay under the 256kb scan size.

where it spends all its time is in, in the for loops that determine combos

EvalTests.pm::sub _check_recipients

    for (my $i = 0; $i <= $#address; $i++) {
dbg ("looping through address $i of $#address");
      for (my $j = $i+1; $j <= $#address; $j++) {
        $hits++ if $user[$i] eq $user[$j];
        $hits++ if $host[$i] eq $host[$j] && $fqhn[$i] ne $fqhn[$j];
        $combinations++;
      }
    }

debug: Running SUSPICIOUS_RECIPS
debug: running a recipient check
..
..
debug: looping through address 900 of 8030
debug: looping through address 901 of 8030
debug: looping through address 902 of 8030
debug: looping through address 903 of 8030
debug: looping through address 904 of 8030
debug: looping through address 905 of 8030
debug: looping through address 906 of 8030
debug: looping through address 907 of 8030
debug: looping through address 908 of 8030
debug: looping through address 909 of 8030
debug: looping through address 910 of 8030
debug: looping through address 911 of 8030
debug: looping through address 912 of 8030

those 8030 recipients take between 70-100 seconds.

after my patch to EvalTests.pm::sub _check_recipients to limit the number of
reipcs stored in @address.  i figured 500 was a good enough number to generate a
 decent hit/combination ratio, dont you think?
 
[EMAIL PROTECTED] SpamAssassin]# time cat /tmp/msg.txt | spamc 2>&1 >/dev/null

real    0m0.613s
user    0m0.000s
sys     0m0.010s

sending diff in a sec...






------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

Reply via email to