So *applyn *is only 3% faster for generated sequences with 10 elements (on 
my machine with 1.4 too).

Reducing the number of elements has a better effect:

(let[t(fn[](applyn 5 + (range 1 6)))] (time(dotimes [_ 1000000] (t)))) ;438 
msec
(let[t(fn[](apply + (range 1 6)))] (time(dotimes [_ 1000000] (t)))) ;550 
msec

So for 5 elements, we have a performance boost of about 20% but I got a 
degradation for longer sequences than 12 elements.

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

Reply via email to