Re:De-chunkifying Sequences in Clojure
by gps408 on Friday January 22, 2010 @03:39PM
(#1070619)
The chunking behaviour is transparent unless you have a side-effect in your sequence function, which isn't sensible anyway. The chunked behaviour performs significantly better for the majority of cases which is why it's on by default, I believe.
Rich (creator of Clojure) addressed concerns similar to yours in this reddit discussion:
Re:De-chunkifying Sequences in Clojure
by sparky on Friday January 22, 2010 @11:31AM
(#1069939)
Is there any way to de-chunkify sequences in an exponential way ("uncover" twice as many elements each time instead of a constant number)? Would this be useful?
Rich (creator of Clojure) addressed concerns similar to yours in this reddit discussion:
http://www.reddit.com/r/programming/comments/afyav/clojure_1...
He also discusses chunked sequences in a video here (near the bottom of the list, the sound is pretty bad):
http://tomfaulhaber.blip.tv/
Only if you believe the side effect of using the CPU doesn't count.
my point is that telling your users they aren't sensible quickly becomes tedious (and tends to annoy them).
http://clojure-log.n01se.net/date/2010-01-22.html#15:01