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 _______________________________________________ Cvs-ghc mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-ghc
