[Mimedefang] SpamAssassin via mimedefang is slow
Oliver Schulze L.
oliver at samera.com.py
Sun Jan 18 14:30:04 EST 2009
Will it helps to move SA's TMPDIR to a ram disk?
Oliver
David F. Skoll wrote:
> Daniel Bourque wrote:
>
>> my $mail = $spamtest->parse(\@message,0);
>> my $status = $spamtest->check($mail);
>> my $hits = $status->get_hits;
>> my $req = $status->get_required_hits();
>> my $names = $status->get_names_of_tests_hit();
>> my $report = $status->get_report();
>> return($hits, $req, $names, $report);
>
> That will leak memory like you wouldn't believe. You need
> to call:
>
> $mail->finish();
> $status->finish();
>
> before returning. If it happens that those are what's taking a long
> time,
> then your fix may make spamassassin run faster... at the cost of leaking
> memory like a sieve and littering /tmp with thousands of files. :-(
>
> Regards,
>
> David.
> _______________________________________________
> NOTE: If there is a disclaimer or other legal boilerplate in the above
> message, it is NULL AND VOID. You may ignore it.
>
> Visit http://www.mimedefang.org and http://www.roaringpenguin.com
> MIMEDefang mailing list MIMEDefang at lists.roaringpenguin.com
> http://lists.roaringpenguin.com/mailman/listinfo/mimedefang
--
Oliver Schulze L.
Asuncion - Paraguay
http://tinymailto.com/oliver
More information about the MIMEDefang
mailing list