On Fri, 2010-01-08 at 14:26 -0800, Danek Duvall wrote:
> Would anyone object to the following patch:
> 
>     --- a/src/setup.py
>     +++ b/src/setup.py
>     @@ -777,7 +777,7 @@ class dist_func(_bdist):
>      
>      
>      # These are set to real values based on the platform, down below
>     -compile_args = None
>     +compile_args = [ "-O3" ]
>      link_args = None
>      ext_modules = [
>              Extension(
> 

Does this work with Sun Studio, I thought the flag is -xO3 for Sun
Studio. Just checked the options reference for Sun Studio 12 and
couldn't find it in there.

Erik

> It adds a "-O3" flag to the end of every compile.  It will require that you
> use SS12 or newer (or gcc) as your compiler, which is probably okay.  But
> it gives us a small speedup in action parsing, and a large speedup in
> solver performance on Niagara.
> 
> On x86 and sparc64, the solver speeds up by about 3x; on N2, the solver
> speeds up by about 2.6x.  (Average of three runs of run.py -o t_solver.)
> 
> On x86, action parsing speeds up by about 7.6%; on sparc64, by 3.6%; on N2,
> by 3.2%.  (Average of the three runs of action creation in actionbench.)
> 
> Danek
> _______________________________________________
> pkg-discuss mailing list
> [email protected]
> http://mail.opensolaris.org/mailman/listinfo/pkg-discuss


_______________________________________________
pkg-discuss mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/pkg-discuss

Reply via email to