Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which version of Java should I use for Clojure (performance)?

Tags:

jvm

clojure

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?

like image 917
Nick Avatar asked Jul 10 '26 14:07

Nick


1 Answers

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.

like image 101
Alex Miller Avatar answered Jul 13 '26 22:07

Alex Miller



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!