scala performance

Since version 6 update 14, the JVM has a feature called escape analysis: http://java.sun.com/javase/6/webnotes/6u14.html#hotspot14.0-G1-6u14. If the JVM sees that an object is created just for the scope of a single method (e.g., StringBuilder), it can decide not to create it and instead use the fields as local variables.

 

This is good for Java, but especially for Scala, since many of Scala's features are implemented by creating wrapper objects (implicit conversions, call-by-name). Performance improves from 11% (http://blog.juma.me.uk/2008/12/17/objects-with-no-allocation-overhead/). Some people suggest a 25% improvement in performance

Thank you for your interest!

We will contact you as soon as possible.

Send us a message

Oops, something went wrong
Please try again or contact us by email at info@tikalk.com