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
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
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