[Haskell-cafe] Thunks and GHC pessimisation

Tom Ellis tom-lists-haskell-cafe-2013 at jaguarpaw.co.uk
Sun Feb 24 19:55:43 CET 2013


On Sun, Feb 24, 2013 at 06:25:56PM +0000, Don Stewart wrote:
> If you explicitly rely on this not happening, turn it off:
> 
> $ ghc -O2 -fno-full-laziness --make A.hs -rtsopts -fforce-recomp
> [1 of 1] Compiling Main             ( A.hs, A.o )
> Linking A ...
> 
> $ time ./A +RTS -M750k
> (500000500000,500000500000)
> ./A +RTS -M750k  0.06s user 0.00s system 97% cpu 0.069 total

Thanks Don, that's good to know.  I am not currently bitten by this issue in
any production code, but I am concerned it will crop up when I least expect
it.

Tom



More information about the Haskell-Cafe mailing list