out of memory when running haddock

David Waern david.waern at gmail.com
Thu Oct 9 07:47:12 EDT 2008


So, the status on this:

Thomas submitted working code to GHC's Haddock repository for
typechecking all modules without loading things twice.

I've now managed to reduce memory usage from 1000 M to 350 M at its
peak when processing the ghc package, by interleaving typechecking
with interface creation. I use pretty printing to fully evaluate the
Interface structure at each round.

I'm wondering, should the GHC API provide NFData instances for GHC data types?

I'll look for ways to further reduce memory usage later. My lunch
break ends now :)

David



More information about the Cvs-ghc mailing list