5 ms·
My understanding is that Clojure also relies heavily on some of the advanced Hotspot optimizations that aren't available in Dalvik so it's often much slower on
by cageface 15y ago
My understanding is that Clojure also relies heavily on some of the advanced Hotspot optimizations that aren't available in Dalvik so it's often much slower on Android than it is on the standard JVM.
- daniel_solano 15y agoReally? I haven't heard of that. In my experience, most of the alternative compiled JVM languages, i.e. Scala, Clojure, Mirah, and JRuby, seem to run fairly comparable to each other once they have started. The biggest differentiator between them with respect to performance seems to be in the way of start time and heap overhead ranging from none (Mirah) to substantial (JRuby).
- cageface 15y agoNaively written Clojure is going to run a lot slower than Scala because it's doing a lot more dynamic dispatch. With the right type annotations you can probably get them fairly close.
- lucian1900 15y agoAfaik it's about Hotspot having a much, much better GC.