On Saturday September 15 2007 04:26:59 Daryl C. W. O'Shea wrote:
> Mark Martinec wrote:
> > On Friday September 14 2007 22:27:59 Justin Mason wrote:
> >> actually, I misremembered -- it's a speed thing.
> >> http://www.ccl4.org/~nick/P/Fast_Enough/#needless_importing_is_slow
> >> Probably not quite as relevant for our code as for POSIX.pm!
> >
> > Right, a few milliseconds during a program startup,
> > once every few days after a spamd or amavisd restart.
>
> Don't forget that there's a significantly non-zero number of people
> running 'spamassassin' for every message on Windows.

$ perl -e 'use Time::HiRes qw(time); require Mail::SpamAssassin::Util; 
$t0=time; import Mail::SpamAssassin::Util qw(); $t=time;
printf("%.6f\n",$t-$t0)'
0.000051

$ perl -e 'use Time::HiRes qw(time); require Mail::SpamAssassin::Util; 
$t0=time; import Mail::SpamAssassin::Util qw(untaint_var); $t=time;
printf("%.6f\n",$t-$t0)'
0.000068


17 microseconds of difference!  Is it worth discussing it at all?

There are several oportunities for optimization in SpamAssassin,
but this is not one of them.

  Mark

Reply via email to