Memory use blowup with -O1 (versus -O0) in GHC 6.12.1/6.12.2

Ian Lynagh igloo at
Sun May 16 16:11:59 EDT 2010

On Mon, May 10, 2010 at 01:33:00PM -0400, Robert Greayer wrote:
> I've encountered an interesting issue with GHC 6.12.1 and 2 in which a
> small program compiles quickly without using loads of memory with
> optimization turned off, but with optimization (-O1) turned on, GHC's
> memory usage becomes very high (and compilation takes much much
> longer).

I can reproduce this with the 6.12 branch, but in the HEAD compilation
is fast, and works with "+RTS -M30M".


More information about the Glasgow-haskell-users mailing list