Cache misses are a possibility; try the integer version with long, so the size of the data is the same as with double. The other possibility I'd consider likely is that the JDK you were using implements caching in Double.valueOf(double). This could be dealt with if Clojure boxing directly called new Double(double). Caching in valueOf methods has been known to cause trouble in other situations, involving Java, primitive boxing, and performance. Besides the caching wrecking memory access-pattern locality, causing CPU cache misses, it likely involves acquiring and releasing a global lock on the Double cache, which will kill multithreaded performance particularly.
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---