> I did: > "Java arrays 18s" is Java arrays in Clojure. > "Plain Java 2s" is Java arrays in Java. One reason here is that clojures literals as 1 2 and 3 you use for array indexes are longs, the aget methods want int's so you've funny casting there which is slow for comparison I've done it on a private test thingy where I use longs as array indexes:
user=> (time-mtype) (5000000.00 10000000.00 15000000.01) Bye from Clojure "Elapsed time: 245.152 msecs" nil user=> (time-type) (5000000.00 10000000.00 15000000.01) Bye from Clojure "Elapsed time: 1360.897 msecs" nil user=> (time-arr) (5000000.00 10000000.00 15000000.01) Bye from Clojure "Elapsed time: 2029.323 msecs" nil Regards, Heinz -- 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