
4 Jun
2009
4 Jun
'09
8:33 a.m.
On Jun 4, 2009, at 11:42 AM, Simon Marlow wrote:
Those two [1..] ring alarm bells. GHC will happily combine them with CSE and possibly also lift them to the top-level; both transformations might have a big impact on space behaviour.
Try with -fno-full-laziness and/or -fno-cse.
I did and found no difference when using any or both of these flags. I have just submitted a ticket: http://hackage.haskell.org/trac/ghc/ticket/3273 It seems the problem is not related to newtypes. Also in the original program with newtypes the memory requirements only depend on whether I use -O. Cheers, Sebastian -- Underestimating the novelty of the future is a time-honored tradition. (D.G.)