hi, follow links from here: http://www.infoq.com/news/2009/12/clojure-11-rc1-transients
chunked sequences have their first elements realized in advanced by packets of 32 Under the hoods, it seems that range uses chunked sequences ( http://github.com/richhickey/clojure/blob/master/src/clj/clojure/core.clj#L2016 ) , not iterate ( http://github.com/richhickey/clojure/blob/master/src/clj/clojure/core.clj#L2012 ) HTH, -- Laurent 2010/3/19 alux <alu...@googlemail.com>: > Laurent, > >> Could chunked seqs explain something here ? > > sounds possible. If I only knew what this is ;-) > > Regards, alux > > Laurent PETIT schrieb: >> 2010/3/19 alux <alu...@googlemail.com>: >> > ;-) >> > >> > Still, I dont believe. >> > >> > I get the same difference with >> > >> > user=> (time (map fib0 (range 100))) >> > "Elapsed time: 1.916445 msecs" >> > >> > more than 5 seconds >> > >> > (0 1 1 2 3 5 8 13 21 34 ...) >> > >> > user=> (time (map fib0 (iterate inc 0))) >> > "Elapsed time: 0.104203 msecs" >> > (0 1 1 2 3 5 8 13 21 34 ...) >> > >> > Hm. >> > >> > Regards, alux >> >> Could chunked seqs explain something here ? > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this group, send email to clojure@googlegroups.com > Note that posts from new members are moderated - please be patient with your > first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en > > To unsubscribe from this group, send email to > clojure+unsubscribegooglegroups.com or reply to this email with the words > "REMOVE ME" as the subject. > -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegroups.com Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en To unsubscribe from this group, send email to clojure+unsubscribegooglegroups.com or reply to this email with the words "REMOVE ME" as the subject.