On Sun, Oct 7, 2012 at 8:01 PM, Wes Freeman <freeman....@gmail.com> wrote: > What version of clojure are you guys using, just to understand this a little > better? I think apply was given a boost in 1.3 or 1.4--I'm a relative > newbie, myself.
Ah using 1.4 I do see a speedup: clojure-test.core> (let[t(fn[](apply + '(1 2 3 4 5 6 7 8 9 10)))] (time(dotimes [_ 1000000] (t)))) "Elapsed time: 832.403941 msecs" nil clojure-test.core> (let[t(fn[](applyn 10 + '(1 2 3 4 5 6 7 8 9 10)))] (time(dotimes [_ 1000000] (t)))) "Elapsed time: 368.181313 msecs" nil -- Ben Wolfson "Human kind has used its intelligence to vary the flavour of drinks, which may be sweet, aromatic, fermented or spirit-based. ... Family and social life also offer numerous other occasions to consume drinks for pleasure." [Larousse, "Drink" entry] -- 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