The JRuby development team
strongly recommends that everyone install the latest version of OpenJDK 7u2 (OpenJDK 7 update 2), which is
significantly improved compared to the July release of JDK 7 GA (General Availability). Among other things, an important optimization has been made in the invokedynamic subsystem. Since JRuby 1.7 is actively using this subsystem, the developers specifically held release 1.7, waiting for this update. Actually, the official release 1.7 has not happened yet, but the preliminary build for testing can be downloaded
here .
When using JRuby 1.6.x after upgrading from Java 6 to Java 7, you will see an increase in speed of JRuby-applications by about 10-30%, and in the case of JRuby 1.7 - about
three times !
Developers ask those who did not notice any difference in performance to register a message in a
bug tracker . Obviously, this is some kind of bug that they will try to fix for the official release of JRuby 1.7.
')
That's not all. For the future of OpenJDK 7u4, the new invokedynamic optimizer is scheduled, and the guys from OpenJDK talk about the possibility of even greater performance gains.