JRuby and JDK24 AOTCache experiment

Charles Oliver Nutter headius at headius.com
Thu Feb 13 15:12:54 UTC 2025


I figured folks here would be interested to see this experiment using
AOTCache with JRuby.

https://gist.github.com/headius/1a5cfbc91ed8bacd194f1c592a90c275

I just test the 'hello world' scenario that represents our baseline
startup, but AOT caching manages to beat the automatic AppCDS startup by a
bit. More/better training might help here I'm guessing?

This is from the JRuby 10 branch (10-dev) on
https://github.com/jruby/jruby.git if anyone wants to play with it. Just
run `./mvnw` and then `bin/ruby` will work. We recently added support for
AutoCreateSharedArchive so it will use CDS by default. Pass --nocache to
disable that behavior.

*Charles Oliver Nutter*
*Architect and Technologist*
Headius Enterprises
https://www.headius.com
headius at headius.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/leyden-dev/attachments/20250213/b4d33176/attachment.htm>


More information about the leyden-dev mailing list