Mike McKinney wrote:
anyone have any ideas/comments on the following:
:~ mckinnms$ time /usr/local/jruby-1.0.1/bin/jruby -v
ruby 1.8.5 (2007-10-26 rev 4201) [i386-jruby1.0.1]
real 0m0.178s
user 0m0.095s
sys 0m0.048s
:~ mckinnms$ time /usr/local/jruby-1.1b1/bin/jruby -v
ruby 1.8.5 (2007-11-01 rev 4842) [i386-jruby1.1b1]
real 0m1.277s
user 0m1.178s
sys 0m0.086s
The -v flag was fixed in 1.1 to also start up the JRuby runtime in
preparation for launching a script you may have specified. The correct
behavior for -v is to report version *and* set run a script with
verbose=true if you have specified one. The way the command-line
processing is wired up, it doesn't determine you haven't passed a file
or -e until the runtime is already ready to be used, so there's the
startup delay there.
It can probably be rewired a bit differently, but that's ugly code and I
just wanted -v fixed. Hopefully we'll be able to clean it up for 1.1 final.
- Charlie
---------------------------------------------------------------------
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email