[Haskell-cafe] memory issues

Don Stewart dons at galois.com
Fri Feb 27 17:48:37 EST 2009


creswick:
> On Fri, Feb 27, 2009 at 2:20 PM, Don Stewart <dons at galois.com> wrote:
> > creswick:
> >> \begin{code}
> >> -- Compiled with:
> >> -- $ ghc --make offsetSorter.hs
> >
> > YIKES!! Use the optimizer!
> >
> >    ghc -O2 --make
> 
> Ah, that did drastically cut the amount of time it takes to run out of
> memory (down to 1:23), but unfortunately I can't see any other
> improvements -- the memory consumed seems to be about the same.
> (granted, I have no indication of progress -- it may be getting
> significantly more done, but it's not quite over the hump and
> producing output yet.)
> 

Ok. Now, profile! (ghc -O2 -prof -auto-all --make)

    http://book.realworldhaskell.org/read/profiling-and-optimization.html


More information about the Haskell-Cafe mailing list