Long compilation times when profiling a large CAF

Conal Elliott conal at conal.net
Tue Aug 21 20:14:48 CEST 2012

I'm looking for help with crazy-long compile times when using GHC with
profiling. A source file at work has a single 10k line top-level
definition, which is a CAF. With -prof auto-all or an explicit SCC,
compilation runs for 8 hours on a fast machine with the heap growing to
13GB before being killed. Without profiling, it compiles in a few minutes.

The big CAFs are auto-generated and not of my making, so I'm hoping for a
solution other than "stop making big CAFs".

Thanks,  -- Conal
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.haskell.org/pipermail/glasgow-haskell-users/attachments/20120821/8de54fa4/attachment-0001.htm>

More information about the Glasgow-haskell-users mailing list