[GHC] #14594: 2 modules / 2500LOC takes nearly 3 minutes to build

GHC ghc-devs at haskell.org
Mon Dec 18 15:58:58 UTC 2017


#14594: 2 modules / 2500LOC takes nearly 3 minutes to build
-------------------------------------+-------------------------------------
        Reporter:  schyler           |                Owner:  (none)
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
 Type of failure:  Compile-time      |  Unknown/Multiple
  performance bug                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by bgamari):

 Indeed this program produces some moderately large Core.
 {{{
 *** Desugar [GitHub.Data.Webhooks.Events]:
 Result size of Desugar (after optimization)
   = {terms: 18,603, types: 76,783, coercions: 21,668, joins: 0/547}

 *** Desugar [GitHub.Data.Webhooks.Payload]:
 Result size of Desugar (after optimization)
   = {terms: 26,920, types: 195,711, coercions: 41,708, joins: 1/937}
 }}}
 Nearly all of this is derived bindings. It would be interesting to study
 which classes are contributing the most.

-- 
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/14594#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list