Example of moving RubyGems plugin init to speed startup

Here’s a set of patches and a sample session, showing the impact of
RubyGems’ plugin scanning on startup and how it can be mitigated by
moving it to a file loaded only when running ‘gem’ from the command
line:

I’ve set this in my environment since, as you can see, I have hundreds
of gems installed…scanning all those dirs for plugins sucks.

I believe something similar is going to go into RubyGems proper soon,
but for now you can patch it yourself.

  • Charlie