require 'jruby' should load 'java' library *lazily*
---------------------------------------------------
Key: JRUBY-4259
URL: http://jira.codehaus.org/browse/JRUBY-4259
Project: JRuby
Issue Type: New Feature
Affects Versions: JRuby 1.4
Reporter: Vladimir Sizikov
Assignee: Thomas E Enebo
Fix For: JRuby 1.5
In Rubygems, and in JIRB, we require 'jruby', and that in turns loads the whole
'java' stuff, consuming 200-300ms of time.
In JRuby case, all we need 'jruby' for is to enable object space. In such case,
there is no need to load the whole 'java' stuff. Ideally, the 'java' lib should
be loaded lazily, only when needed.
In JIRB case, removing this eager loading of 'java' actually saves us QUITE A
LOT: the startup time of JRuby IRB goes from 570ms to 340ms!!
See also:
http://blog.emptyway.com/2009/11/21/making-sense-out-of-slow-rubygems-startup/
for rubygems related info.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email