On Tue, 5 Jun 2001, Tom Moertel wrote: > The reason that foo1 "leaks" space is because the middle of v grows > faster than its head. So taking elements from v causes its in-memory > footprint to grow. To see why this is the case, evaluate foo1 by hand: > > So the problem isn't Hugs but rather the definition of v, which grows > faster than it can be consumed. > Tom How come then that the very program compiled under nhc98 evaluates without any problem, with memory usage below 1M during its execution? Wojciech Moczydlowski, Jr _______________________________________________ Haskell mailing list [EMAIL PROTECTED] http://www.haskell.org/mailman/listinfo/haskell
- Why is there a space leak here? David Bakin
- Re: Why is there a space leak here? Alastair David Reid
- Re: Why is there a space leak here? Mark Tullsen
- Re: Why is there a space leak here? Tom Moertel
- Re: Why is there a space leak here? Claus Reinke
- Re: Why is there a space leak here? S. Alexander Jacobson
- Re: Why is there a space leak here? Wojciech Moczydlowski, Jr
- Re: Why is there a space leak here? Tom Moertel
- Re: Why is there a space leak here? Wojciech Moczydlowski, Jr
- Re: Why is there a space leak here? Mark Tullsen
- Re: Why is there a space leak here? Alastair David Reid
- Re: Why is there a space leak here? Steinitz, Dominic J
- Re: Why is there a space leak here? Mark Tullsen
- Re: Why is there a space leak here? Tom Moertel
- Re: Why is there a space leak here? Mark Tullsen
- Re: Why is there a space leak here? Claus Reinke
- Re: Why is there a space leak here? Jörgen Gustavsson