
#14928: TH eats 50 GB memory when creating ADT with multiple constructors -------------------------------------+------------------------------------- Reporter: YitzGale | Owner: (none) Type: bug | Status: closed Priority: normal | Milestone: 8.4.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: | -------------------------------------+------------------------------------- Changes (by bgamari): * status: new => closed * resolution: => fixed * milestone: 8.6.1 => 8.4.1 Comment: I can reproduce the high residency when building `snoyman-master` with GHC 8.2.1 (or GHC 8.4.1) and optimisation enabled, but have been unable to do so with GHC `master`. I believe the memory leak present in 8.2/8.4 has since been fixed. For what it's worth, I was also able to reproduce the issue using a Nix `ghcHEAD` snapshot from 20180118, so it was fixed relatively recently. -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/14928#comment:5 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler