Reputation: 9051
In order to get the most performance, should I use the latest Java, i.e. Java 8 for Clojure 1.6 development?
Will Java 8 improves JVM performance over Java 7?
Upvotes: 3
Views: 1407
Reputation: 70211
Java updates generally optimize and improve performance on the most common operations - allocation, synchronization, virtual calls, etc. All of those are entirely applicable to Clojure code.
Anecdotally, Java 8 seems about 10% faster than Java 7 for me on typical Clojure programs.
My general recommendation is to use the newest stable Java version for Clojure applications.
Upvotes: 5
Reputation: 14569
Newer versions of Java generally are faster than old versions. I would expect Java 8 to be at least the same, if not a little faster for Clojure code.
Java 8 is faster than Java 6 and Java 7 in this benchmark: http://www.optaplanner.org/blog/2014/03/20/HowMuchFasterIsJava8.html
Upvotes: 0