
#16413: GHC bindist with DWARF support seems much slower than non-DWARF -------------------------------------+------------------------------------- Reporter: jberryman | Owner: (none) Type: bug | Status: new Priority: normal | Milestone: Component: Compiler | Version: 8.6.3 Resolution: | Keywords: Operating System: Unknown/Multiple | Architecture: | Unknown/Multiple Type of failure: None/Unknown | Test Case: Blocked By: | Blocking: Related Tickets: | Differential Rev(s): Wiki Page: | -------------------------------------+------------------------------------- Comment (by bgamari): There are two possible reasons for this: 1. The source notes used to generate debug information hide some optimisation opportunities from the simplier. This is known to happen in a few cases, although this shouldn't cause anywhere near the sort of slowdown you observe. 2. The link resulting object files take longer to assemble and link. This is known to be the case; while binaries with debug information are generally larger than those without in any language, this effect is greatly exaggerated in Haskell. I have seen binaries produced by GHC with debug information which are ten times larger than their un-adorned counterparts. Producing all of these additional bytes of course costs time. The time effect of (2) very much depends upon which linker you are using. Can you paste the output from `ghc --info`? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/16413#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler