[Chicken-users] Strange memory leak with lazy-seq

2015-02-23 Thread Kooda
Hi! I’ve been playing with lazy-seq for the past few days and found a very strange behaviour: The heap of the following program keeps growing rapidly in csi, running the same program after compilation seems to slow down the growth quite a lot but the heap isn’t constant as I was expecting it to

Re: [Chicken-users] Strange memory leak with lazy-seq

2015-02-23 Thread John Cowan
Kooda scripsit: (define (complex-stream seq) (lazy-map identity seq)) Lazy-map isn't lazy, so you are basically generating an eager list processing each element, and discarding the whole mess. -- John Cowan http://www.ccil.org/~cowanco...@ccil.org Where the wombat has

Re: [Chicken-users] Strange memory leak with lazy-seq

2015-02-23 Thread Alex Shinn
On Mon, Feb 23, 2015 at 9:57 PM, Kooda ko...@upyum.com wrote: Hi! I’ve been playing with lazy-seq for the past few days and found a very strange behaviour: The heap of the following program keeps growing rapidly in csi, running the same program after compilation seems to slow down the