Guys,

During investigation of JRUBY-1680, it turned out that JRuby startup
is much slower when rubygems are being loaded.
Simple profiling shows that loading of ruby gems is close to 2 seconds
of *EXTRA* time needed for jruby to start:
http://jira.codehaus.org/secure/attachment/31099/Load_Timings.txt

Few things that are loaded with rubygems seems to be not-needed, or at
least should not be loaded up-front:

- rubygems/security
- rubygems/remote_fetcher

When I commented out those two requires, in rubygems.rb, and in
rubygems/source_index.rb, the simple

time jruby -rubygems -e 'puts "hello"'

executed in 1.68 secs instead of 3.2secs with original rubygems, sweet
time reduction of almost 2x! :)

I wonder, can we do anything with official rubygems and maybe ask
maintainers to tweak the rubygems for us? :)

Thanks,
  --Vladimir

---------------------------------------------------------------------
To unsubscribe from this list please visit:

    http://xircles.codehaus.org/manage_email

Reply via email to