5 Jun
2001
5 Jun
'01
7:50 p.m.
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