Re: -O vs. -O2

2010-05-10 Thread Simon Marlow
On 10/05/2010 03:43, Roman Leshchinskiy wrote: On 09/05/2010, at 07:50, Duncan Coutts wrote: On Wed, 2010-05-05 at 21:24 +1000, Roman Leshchinskiy wrote: Whenever I do cabal sdist on one of my projects, I get this warning: Distribution quality warnings: 'ghc-options: -O2' is rarely needed.

Re[2]: -O vs. -O2

2010-05-09 Thread Bulat Ziganshin
Hello Duncan, Sunday, May 9, 2010, 1:50:31 AM, you wrote: It should be -O1 for default/balanced optimisations and -O2 for things involving a bigger tradeoff in terms of code size or compile time. so cloning gcc policy may be a good choice. -O2 is the best optimization that guaranteed to make

Re: -O vs. -O2

2010-05-09 Thread Florian Weimer
* Bulat Ziganshin: cloning gcc policy may be a good choice. -O2 is the best optimization that guaranteed to make program faster and -O3 is for speculative optimization (those that may be breaked by unusual code or made program slower). not sure about -O1, -O1 is supposed to yield somewhat

Re: -O vs. -O2

2010-05-09 Thread Roman Leshchinskiy
On 07/05/2010, at 19:53, Simon Marlow wrote: On 05/05/2010 12:24, Roman Leshchinskiy wrote: Whenever I do cabal sdist on one of my projects, I get this warning: Distribution quality warnings: 'ghc-options: -O2' is rarely needed. Check that it is giving a real benefit and not just imposing

Re: -O vs. -O2

2010-05-09 Thread Roman Leshchinskiy
On 09/05/2010, at 07:50, Duncan Coutts wrote: On Wed, 2010-05-05 at 21:24 +1000, Roman Leshchinskiy wrote: Whenever I do cabal sdist on one of my projects, I get this warning: Distribution quality warnings: 'ghc-options: -O2' is rarely needed. Check that it is giving a real benefit and not

Re: -O vs. -O2

2010-05-08 Thread Duncan Coutts
On Wed, 2010-05-05 at 21:24 +1000, Roman Leshchinskiy wrote: Whenever I do cabal sdist on one of my projects, I get this warning: Distribution quality warnings: 'ghc-options: -O2' is rarely needed. Check that it is giving a real benefit and not just imposing longer compile times on your

Re: -O vs. -O2

2010-05-08 Thread Don Stewart
duncan.coutts: On Wed, 2010-05-05 at 21:24 +1000, Roman Leshchinskiy wrote: Whenever I do cabal sdist on one of my projects, I get this warning: Distribution quality warnings: 'ghc-options: -O2' is rarely needed. Check that it is giving a real benefit and not just imposing longer

Re: -O vs. -O2

2010-05-07 Thread Simon Marlow
On 05/05/2010 12:24, Roman Leshchinskiy wrote: Whenever I do cabal sdist on one of my projects, I get this warning: Distribution quality warnings: 'ghc-options: -O2' is rarely needed. Check that it is giving a real benefit and not just imposing longer compile times on your users. This finally

-O vs. -O2

2010-05-05 Thread Roman Leshchinskiy
Whenever I do cabal sdist on one of my projects, I get this warning: Distribution quality warnings: 'ghc-options: -O2' is rarely needed. Check that it is giving a real benefit and not just imposing longer compile times on your users. This finally got me curious and I did a nofib run to compare