[ANN] faster_rubygems v 0.12.2 released--make startup fast!

Hello all.

Pleased to release v 0.12.2 of the “faster_rubygems” gem.

This gem makes loading rubygems much faster.

What it does is cache the location of files in your gem dirs, ex:

/lib/ruby/gems/1.8/jruby/{active_support, active_record}

it creates this file:

/lib/ruby/gems/1.8/jruby/.faster_rubygems_cache

Then it uses that instead of loading full blown rubygems.

Timing (on doze with ~ 50 gems installed):

no rubygems at all:

$ jruby -e 1
0.68s.

require ‘rubygems’ time:

$ jruby -rubygems -e 1

2.36s normal rubygems: → 0.94s with faster_rubygems

time to do a rake -V (get rake version):

$ jruby -S rake -V

2.48s with normal rubygems: → 1.50s with faster_rubygems

(rake installed into site_ruby and loaded without rubygems takes 1.41s).

Thus we see that loading of rubygems has decreased from 1.4s to between
0.1s and 0.3s

Installation:

$ gem install faster_rubygems # overrides normal rubygems automatically

Uninstallation:

$ gem uninstall faster_rubygems

Feedback welcome:

Installation:

$ gem install faster_rubygems # overrides normal rubygems automatically

Also note that it install faster_rubygems to site_ruby, and just pushed
a small bug fix for v 0.12.5

Enjoy!
-r