Forum: JRuby RE: 100% AOT compiled jruby with spring

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
9ff4ad7c2fd1fc0fce18cb59f5649658?d=identicon&s=25 Peter K Chan (Guest)
on 2009-03-21 21:47
(Received via mailing list)
I have done some precompilation of Rails core. Here are my current
experiences:

- Some parts of Rails are loaded by listing files in a directory, which
obviously does not work in a precompiled app. You will have to patch
those parts to load the dependencies .class explicitly.

- I patched Rails code to bypass gem and just load the files directly.

- There is currently not much performance advantage to precompile ruby
files. Launch time for my app actually worsens slightly compared to
interpretation mode. If you want better performance, you can always set
jruby.compile.mode=FORCE to force compilation on all code. This way, you
gain the same level of compiled performance, but without the risk of
having a precompiled version that may become incompatible with future
reason of JRuby (I don't think JRuby has a versioned compilation format;
someone correct me if I am wrong).

Peter
This topic is locked and can not be replied to.