[Haskell-beginners] Memory usage prediction

Emanuel Koczwara poczta at emanuelkoczwara.pl
Wed Jul 3 21:31:33 CEST 2013

Hi Patrick,

Dnia 2013-07-03, śro o godzinie 15:20 -0400, Patrick Mylund Nielsen
> The short answer is no. This is Haskell's biggest weakness: it's
> difficult to predict space usage.
> The longer answer is "kind of" -- you can't exactly intuit it, but the
> profiler is easy to use:
> http://book.realworldhaskell.org/read/profiling-and-optimization.html
> http://www.haskell.org/ghc/docs/7.6.2/html/users_guide/prof-heap.html
> The only caveat is you have to reinstall your libraries with profiling
> enabled: http://stackoverflow.com/questions/1704421/cabal-not-installing-dependencies-when-needing-profiling-libraries
> (If I've already installed some packages, usually I take the quick and
> dirty route and just set library-profiling to True, delete ~/.ghc to
> clear the package list, then install my package.)

  Thank you for such a quick response. I know all that profiling
'stuff'. So, I will put it this way: is there a chance, that I will be
able to predict performance after some time of profiling my code?

Best regards,

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 5185 bytes
Desc: not available
URL: <http://www.haskell.org/pipermail/beginners/attachments/20130703/2401e409/attachment.bin>

More information about the Beginners mailing list