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





------- Additional Comments From [EMAIL PROTECTED]  2004-10-09 05:53 -------
Something else is going on with this other than TextCat being slow.

When I run (on my PC under cygwin using current trunk svn)
  time spamassassin -t -L < badmsg1.txt > /dev/null
I get real time 16.6 seconds.

When I take the body of the malformed MIME sections and put it by itself with
some headers as the body of a mail message, that makes a 42Kbyte file, and 
running
  time spamassassin -t -L < message > /dev/null
I get real time 6.6 seconds

When I put in Dallas' proposed patch, I get times of 9.1 and 5.6 respectively.

When I instead change the call to create_lm($input) in TextCat.pm to be
 create_lm(substr($input, 0, 10000)
(which I am more comfortable with than the proposed patch, by the way)
the times go to 8.5 and 5.2 respectively.

This needs more investigation, but it seems that something else is going on in
that malformed MIME example. The times are consistent with textcat being called
more than once on the message body in the badmsg1.txt example. I don't have time
to look at this more right at this moment.

Also, the slowness of that loop in TextCat doesn't explain the memory blowup.




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

Reply via email to