Speedup start times?

Hello all.

I noticed that jruby (on my box) takes

$ timer jruby -e “puts 3”
3
1.627504

takes 1.6 seconds, and that’s with an SSD. Is there any hope of a quick
startup (without nailgun–cold start). Maybe if the class files were
split out from one huge jar? I don’t know.

Thanks.
-roger-

On Apr 9, 2012, at 10:52 AM, Roger P. wrote:

I noticed that jruby (on my box) takes

$ timer jruby -e “puts 3”
3
1.627504

I run my code inside a virtual machine on a Macbook Air 13" (Samsung
SSD), and things are a bit quicker:

$ time jruby -e 'puts "3"'
3

real  0m0.494s
user  0m0.360s
sys  0m0.176s

Are you running any custom JAVA_OPTS? Client or server VM (server takes
longer to start)? Java 7?

true, this is windows, but it’s the platform I intend on targeting
eventually :slight_smile:

(no special JAVA_OPTS, client VM).

jruby 1.7.0.dev (ruby-1.9.3-p139) (2012-04-09 3391966) (Java HotSpot™
Client VM 1.6.0_26) [Windows 7-x86-java]