Interesting indeed.  I added "use bytes" and performance is much
improved.  It's approximately back to where it was with v3.1.8.  So what
does this all mean?

Well first, do you have the SARE rules installed that are throwing errors? If so, this might only mean that the errors have vanished.

If you don't have the SARE or other rules throwing errors about high bit problems, then this possibly indicates that the Unicode regex handling in Perl is slower than the Ascii regex handling in Perl. This would not particularly surprise me at all, which is why I was hoping that maybe a few people would try this experiment.

       Loren


----- Original Message ----- From: "Rosenbaum, Larry M." <[EMAIL PROTECTED]>
To: <users@spamassassin.apache.org>
Sent: Thursday, May 10, 2007 10:57 AM
Subject: RE: Poor performance with v3.2.0


From: Loren Wilton [mailto:[EMAIL PROTECTED]
Subject: Re: Poor performance with v3.2.0

It would be interesting on some system experiencing this slowdown to
put
'use bytes' back into SA and see what happens with the performance.
This
wouldn't be any sort of a solution, but it would be an interesting
data
point.

Interesting indeed.  I added "use bytes" and performance is much
improved.  It's approximately back to where it was with v3.1.8.  So what
does this all mean?

In case it matters, here's the output of "perl -V":

Summary of my perl5 (revision 5 version 8 subversion 8) configuration:
 Platform:
   osname=solaris, osvers=2.9, archname=sun4-solaris
   uname='sunos email 5.9 generic_118558-39 sun4u sparc
sunw,sun-fire-v210 '
   config_args='-Dcc=gcc -d'
   hint=recommended, useposix=true, d_sigaction=define
   usethreads=undef use5005threads=undef useithreads=undef
usemultiplicity=undef
   useperlio=define d_sfio=undef uselargefiles=define usesocks=undef
   use64bitint=undef use64bitall=undef uselongdouble=undef
   usemymalloc=n, bincompat5005=undef
 Compiler:
   cc='gcc', ccflags ='-fno-strict-aliasing -pipe
-Wdeclaration-after-statement -I/usr/local/include -D_LARGEFILE_SOURCE
-D_FILE_OFFSET_BITS=64',
   optimize='-O',
   cppflags='-fno-strict-aliasing -pipe -Wdeclaration-after-statement
-I/usr/local/include'
   ccversion='', gccversion='3.4.6', gccosandvers='solaris2.9'
   intsize=4, longsize=4, ptrsize=4, doublesize=8, byteorder=4321
   d_longlong=define, longlongsize=8, d_longdbl=define, longdblsize=16
   ivtype='long', ivsize=4, nvtype='double', nvsize=8, Off_t='off_t',
lseeksize=8
   alignbytes=8, prototype=define
 Linker and Libraries:
   ld='gcc', ldflags =' -L/usr/local/lib '
   libpth=/usr/local/lib /usr/lib /usr/ccs/lib
   libs=-lsocket -lnsl -ldl -lm -lc
   perllibs=-lsocket -lnsl -ldl -lm -lc
   libc=/lib/libc.so, so=so, useshrplib=false, libperl=libperl.a
   gnulibc_version=''
 Dynamic Linking:
   dlsrc=dl_dlopen.xs, dlext=so, d_dlsymun=undef, ccdlflags=' '
   cccdlflags='-fPIC', lddlflags='-G -L/usr/local/lib'


Characteristics of this binary (from libperl):
 Compile-time options: PERL_MALLOC_WRAP USE_LARGE_FILES USE_PERLIO
 Built under solaris
 Compiled at May  4 2007 15:28:54
 @INC:
   /usr/local/lib/perl5/5.8.8/sun4-solaris
   /usr/local/lib/perl5/5.8.8
   /usr/local/lib/perl5/site_perl/5.8.8/sun4-solaris
   /usr/local/lib/perl5/site_perl/5.8.8
   /usr/local/lib/perl5/site_perl/5.8.7/sun4-solaris
   /usr/local/lib/perl5/site_perl/5.8.7
   /usr/local/lib/perl5/site_perl/5.8.5/sun4-solaris
   /usr/local/lib/perl5/site_perl/5.8.5
   /usr/local/lib/perl5/site_perl
.

Reply via email to