Dirk Koopman <[EMAIL PROTECTED]> writes: >On Sun, 2005-02-20 at 16:20 +0000, Nick Ing-Simmons wrote: >> Dirk Koopman <[EMAIL PROTECTED]> writes: >> >In my interfacing to my library I am starting hit performance issues related >> >to extracting values from the library and passing to perl. > ><snip> > >> >Questions: >> > >> >1. Why on earth don't the macros change on non-threaded perls (like wot I am >> > using)? >> >> They do. The expansions suggest your perl is threaded. >> > >I agree they do, but it isn't (or at least I have not commanded it to >be):- > >-Darchname=i386-linux -Dlocincpth=/usr/include/db4 -des' > hint=recommended, useposix=true, d_sigaction=define > usethreads=undef use5005threads=undef useithreads=undef >usemultiplicity=undef
I agree that looks unthreaded. > >And just to add this to the general maw of info, I did a ./Configure; >make; make clean with different optimisations. Now look at the numbers:- > >-Doptimize='-march=i686 -O4' > >u=3.34 s=0.92 cu=196.46 cs=23.01 scripts=823 tests=84930 >make[2]: Leaving directory `/home/djk/perl-5.8.5' >make[1]: Leaving directory `/home/djk/perl-5.8.5' > >-Doptimize='-g' > >All tests successful. >u=3.06 s=0.76 cu=185.84 cs=21.5 scripts=823 tests=84930 >make[2]: Leaving directory `/home/djk/perl-5.8.5' >make[1]: Leaving directory `/home/djk/perl-5.8.5' > >This test is completely unscientific, is done only once etc. But the >numbers are the correct way around. Well "make test" is a bit IO heavy for optimization to domminate but I would have expected it to be other way round. Personaly I always build everything "-O2 -g" with gcc. AFAIK -O3 is highest that makes any difference and it mainly inlines things which makes things bigger doesn't help cache and is marginal speed improvement (IMHO). > >Dirk