[Bug 880135] New: Compile GHC packages with -O2

bugzilla at redhat.com bugzilla at redhat.com
Mon Nov 26 10:43:44 UTC 2012


Product: Fedora
https://bugzilla.redhat.com/show_bug.cgi?id=880135

            Bug ID: 880135
           Summary: Compile GHC packages with -O2
           Product: Fedora
           Version: rawhide
         Component: ghc-rpm-macros
          Severity: unspecified
          Priority: unspecified
          Reporter: dag.odenhall at gmail.com

Problem:

If you want to compile your Haskell application with -O2, only parts of it will
be - most system packages are already built with -O1. All your own code is
going to link to those prebuilt binaries.

Does it matter?

Respectable people in the community claim -O2 really does produce better code:

http://stackoverflow.com/questions/11108746/difference-between-ghcs-o-and-o2

Cons:

The fedora packages will take longer to build.

Counter argument:

This shouldn't happen often though, and I guess is done by some build service
[koji?].  Users will just install prebuilt packages with no compilation time at
all and benefit from optimized binaries.

Footnote:

This is only about building the fedora packages with -O2.  Our cabal-install
package should not be changed to default to -O2 for user compilation.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


More information about the haskell-devel mailing list