JRuby 10 brings sooner startup occasions

Learn extra at:

With assist for Java 21, the latest long-term assist model of Java, JRuby strikes previous Java 8 assist and begins integration of Java 21 options. The JRuby group plans to deliver 10 years of JVM enhancements to Ruby customers. Addressing sluggish startup occasions, which has been referred to as the primary criticism from JRuby customers, JRuby 10 leverages newer JVM options together with:

  • Application class data store (AppCDS) – an OpenJDK function that enables pre-caching code and metadata throughout startup to scale back the price of future instructions.
  • Project CRaC (Coordinated Restore at Checkpoint) – an experimental function that enables customers to “checkpoint” a operating course of and launch a number of future processes by restoring that checkpoint.
  • Project Leyden – an OpenJDK mission to enhance the startup time, time to peak efficiency, and footprint of Java packages. The JRuby group will incorporate Leyden flags into JRuby’s launcher as they turn out to be obtainable.

These options, mixed with the diminished overhead --dev flag, supply the fastest-ever startups for JRuby, Nutter mentioned.

Compatibility with Ruby 3.4, in the meantime, has allowed the JRuby group to implement Ruby 3.2, Ruby 3.3, and Ruby 3.4 options in JRuby 10. The brand new JRuby launch runs full invokedynamic optimization by default, offering the most effective obtainable efficiency on JRuby scripts and purposes with out passing further flags. Earlier variations of JRuby ran by default in a “center tier” of optimization, utilizing invokeddynamic optimization solely for easy Ruby operations.

Turn leads into sales with free email marketing tools (en)

Leave a reply

Please enter your comment!
Please enter your name here