[GHC] #13059: High memory usage during compilation

GHC ghc-devs at haskell.org
Mon Jan 16 07:02:35 UTC 2017


#13059: High memory usage during compilation
-------------------------------------+-------------------------------------
        Reporter:  domenkozar        |                Owner:
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.2-rc2
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:  x86_64
 Type of failure:  Compile-time      |  (amd64)
  performance bug                    |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by RyanGlScott):

 Well, I strongly suspected that default methods were the culprit here, so
 I trimmed down `store` (and `store-core`) into two modules and compiled
 each with `+RTS -s`. But to my amazement, both GHC 8.0.1 and 8.0.2
 allocation almost the same number of bytes on the heap with this program!
 So it's likely something other than default methods that are causing the
 issue.

 In any case, I hope the attached programs serve as a useful springboard
 for further attempts to dissect this issue.

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


More information about the ghc-tickets mailing list