Compile time regression in OpenGLRaw
As reported by Paolo Veronelli:
Hello, I'm using ghc 7.10.1 to compile OpenGLRaw which is now impossible with -O1 and -O2 due to "ghc : out of memory error" on a 4GB linux host. The file making memory explode is Graphics.Rendering.OpenGL.Raw.Functions. With -O0 it uses 600 MB.
The file is really huge, but I could compile it with prior versions of ghc.
I've had a look and indeed the file takes way more memory to compile with HEAD. Looking at the heap profiles, it seems that the problem is in GHC itself (space leak somewhere?). I'll attach the heap profiles (from compiling the single module itself, i.e., touch
ing the file and running prof GHC on it).
Paolo also says: ere is another file , which is small, which cannot be compiled within 4GB memory.