On Fri, Sep 05, 2003 at 04:56:45PM +0200, Jochen Tuchbreiter wrote: > Did any of you analyze (profile) where most of the CPU in spamassassin > is spent?
I ran "spamassassin --lint" through Perl's profiler back in July. I know this isn't the same as checking mail for spam/ham, but I found that Mail::SpamAssassin::Conf::_parse This was for SA 2.55, sayeth dprofpp: Total Elapsed Time = 1.809037 Seconds User+System Time = 1.552858 Seconds Exclusive Times %Time ExclSec CumulS #Calls sec/call Csec/c Name 19.8 0.308 0.347 1 0.3084 0.3469 Mail::SpamAssassin::Conf::_parse Just to test, I removed from _parse about 38 of the 100 or so regexes that parse the configuration files. Total Elapsed Time = 1.598757 Seconds User+System Time = 1.464996 Seconds Exclusive Times %Time ExclSec CumulS #Calls sec/call Csec/c Name 14.2 0.209 0.238 1 0.2090 0.2379 Mail::SpamAssassin::Conf::_parse The sample patch is http://lenin.net/~trey/Conf.pm-patch. I didn't rework the whole file b/c 2.60 is still in development and these change require a complete rework of the Conf.pm _parse routine, which is kind of an important piece. And it wasn't worth doing if the current algorithm is preferred for some reason. /trey -- trey valenta [EMAIL PROTECTED] seattle (maybe a) random quote--v Worst Month of 1981 for Downhill Skiing: August. The lift lines are the shortest, though. -- Steve Rubenstein ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Spamassassin-talk mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/spamassassin-talk