[GHC] #14928: TH eats 50 GB memory when creating ADT with multiple constructors

GHC ghc-devs at haskell.org
Tue Jul 31 19:19:42 UTC 2018


#14928: TH eats 50 GB memory when creating ADT with multiple constructors
-------------------------------------+-------------------------------------
        Reporter:  YitzGale          |                Owner:  (none)
            Type:  bug               |               Status:  closed
        Priority:  normal            |            Milestone:  8.6.1
       Component:  Template Haskell  |              Version:  8.2.2
      Resolution:  fixed             |             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 YitzGale):

 @bgamari Thanks very much for that. Confirming your results: I retested
 using 8.4.3 and 8.6.0.20180714 from hvr's PPA. On 8.4.3 the bug reproduced
 with {{{-O1}}} but not with {{{-O0}}}. On 8.6.0.20180714 the bug did not
 reproduce at all, neither with {{{-O0}}} nor with {{{-O1}}}.

 And also thanks for your observations about the code generated by
 {{{mkMessages}}}. I'll report that as a separate issue.

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


More information about the ghc-tickets mailing list