[Haskell-cafe] space leak when repeatedly calling Control.Monad.State.Strict.modify

Joey Hess joey at kitenet.net
Mon Jan 30 18:15:06 CET 2012


Yves Parès wrote:
> Have you tried to compile your code with optimisations? I guess GHC's
> strictness analysis would find strict evaluation is better here.

The original code I saw this happen to the wild was built with -O2.
I didn't try building the test case with optimisations.

-- 
see shy jo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 828 bytes
Desc: Digital signature
URL: <http://www.haskell.org/pipermail/haskell-cafe/attachments/20120130/1c59fcf5/attachment.pgp>


More information about the Haskell-Cafe mailing list