Skip to content

High memory use when compiling many let bindings.

Two programs that generate modules with lots of let bindings that GHC struggles to compile. With the first,

ghc -c J.hs

uses >100M of memory which seems a little high. For the second,

ghc -c J2.hs

got past 700M before I killed it, with both 6.6 and HEAD.

Trac metadata
Trac field Value
Version 6.6
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Compiler
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system Unknown
Architecture Unknown
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information