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

GHC ghc-devs at haskell.org
Tue Feb 6 06:46:29 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 sighingnow):

 After the optimization of `pprASCII`, I found the other two cost center:


 {{{
 COST CENTRE                          MODULE     SRC
 %time %alloc

 pprASCII                             X86.Ppr
 compiler\nativeGen\X86\Ppr.hs:181:28-92            47.8   56.2
 tc_rn_src_decls                      TcRnDriver
 compiler\typecheck\TcRnDriver.hs:(494,4)-(556,7)    6.7   10.4
 mapM_cgTopBinding                    StgCmm
 compiler\codeGen\StgCmm.hs:90:43-84                 5.4   22.6
 }}}

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


More information about the ghc-tickets mailing list