perl-modperl mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "G.W. Haywood" <>
Subject Re: Best GCC compiler options for Intel (perl & apache)
Date Thu, 01 Feb 2001 17:20:11 GMT
Hi Tim,

On Thu, 1 Feb 2001, Tim Bunce wrote:

> Can anyone recommend extra gcc options to squeeze the last ounce of
> performance out of code (perl and apache in this case) on Intel?
> I don't mind tying the code down to one cpu type or loosing the ability
> to debug etc. We're already doing -O6 and are looking for more.

This kind of question usually spawns VERY long threads on this List...

I feel sure you shouldn't be using more than -O2 but I can't remember
why nor where I read it.  If I remember I'll let you know.

The compiler isn't the place to look for performance gains.  Look to
your system architecture, Perl code.  See if you can code the things
that get executed the most in C.  Use handlers, not Registry.  Cache.
Use RAID.  Throw away your database.  Well maybe not throw it away,
but be careful how you use it.  (I can't believe I'm saying this to
you:).  Remember the Pareto Principle.

> I'm using gcc 2.95.2, is that the latest/best?

It'll do.


View raw message