On Tue, 5 Mar 2002, Yevgeniy Miretskiy wrote: > Hello everybody, > > I'm new to the list so please excuse me if this topic was beaten to death... > > I'm very impressed with spam assassin acuracy in spam detection, however > it is not as fast as I wish it was (which is very much understandable given > that spamassassin is written in perl and uses huge number of regex tests). > > PerMsgStatus runs > <quote> > #... ALL the tests, even if a spam triggers lots of them early on. > # this lets us see ludicrously spammish mails (score: 40) etc., which > # we can then immediately submit to spamblocking services. > </quote> > > The question is: why do I need to run all tests if I'm running spamassassin with -L >flag? > > I suggest adding another flag to spamassassin to make PerMsgStatus return as soon as > hit count reaches required_hits level. This flag would imply -L flag as well. > > I added > last TEST if($self->{hits} >= $self->{conf}->{required_hits}); > to check sub in PerMsgStatus.pm after every test performed in order to see > what kind of performance gain I will get. > > I performed benchmarks on 300+ spam/nonspam messages from my mailbox. > I started 30 simultaneous scans (about 10 msg per), and found > that on average I get 22-24% improvement in time taken to scan these messages. > > I really think that this would be a reasonable option to have. > > Again, sorry if this topic was beaten to death before...
It has :-) The problem is that some of the scores are negative, not positive. However a way around this has just occured to me: 1. Run all negatively scoring tests. 2. Run positively scoring tests in highest-score first order. 3. Stop when we hit the threshold. Should be easy enough to implement, and I'm in that part of the code at the moment (though I'm going home now - maybe tomorrow). -- Matt. <:->get a SMart net</:-> ________________________________________________________________________ This e-mail has been scanned for all viruses by Star Internet. The service is powered by MessageLabs. For more information on a proactive anti-virus service working around the clock, around the globe, visit: http://www.star.net.uk ________________________________________________________________________ _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk