[GHC] #14741: High-memory usage during compilation using Template Haskell

GHC ghc-devs at haskell.org
Tue Feb 6 19:55:53 UTC 2018


#14741: High-memory usage during compilation using Template Haskell
-------------------------------------+-------------------------------------
        Reporter:  donatello         |                Owner:  sighingnow
            Type:  bug               |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.2.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):  Phab:D4384
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by donatello):

 Thank you for the fix, it looks promising - but I am not sure if the
 problem is completely solved.

 The profiling output says that total allocations were reduced from 4.7GB
 to 1.3GB, which is 3.5X improvement. However, the goal in my initial
 program was to embed ~100MB of static data in my program - whereas the bug
 demonstrates the problem with a 3MB embedded string.

 Is there any way I could get a built version of the ghc master for 64-bit
 x86 Linux (from a CI server perhaps), so I could try it out myself?

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


More information about the ghc-tickets mailing list