On Thursday 26 February 2009 15.07.34 Luke Palmer wrote: > On Thu, Feb 26, 2009 at 6:53 AM, Daniel Kraft <[email protected]> wrote: > > procOne (a + 1) (newarr `seq` newarr) > > The semantics of seq are: a `seq` b = _|_ if a = _|_, b otherwise. This > implies that x `seq` x = x, and this seq is superfluous. > > Maybe you meant newarr `seq` procOne (a+1) newarr ? > > Luke
I just tested that, and both that and the original used about 500mb of memory. I changed it to "(newarr ! ind) `seq` procOne (a+1) newarr" and it only used about 15mb. -- Sjur Gjøstein Karevoll [email protected]
signature.asc
Description: This is a digitally signed message part.
_______________________________________________ Haskell-Cafe mailing list [email protected] http://www.haskell.org/mailman/listinfo/haskell-cafe
