[Rubygems-developers] GC.start after "require 'rubygems'"

Eric Hodel drbrain at segment7.net
Fri Oct 5 11:13:26 EDT 2007

On Oct 5, 2007, at 07:19 , Berger, Daniel wrote:
> Just saw this, thought it might be of interest:
> http://blog.ra66i.org/archives/informatics/2007/10/05/calling-on- 
> the-gc-
> after-rubygems/
> Basically, the OP says that calling GC.start after require'ing  
> rubygems
> saved a good amount of memory.

I've reduced the number of classes RubyGems loads at startup.  No  
longer does require 'rubygems' load anything that won't be used by  
the custom require or the gem methods.

On my platform I've got ruby using up 1.30M virgin, 3.23M after  
require 'rubygems', and 3.23M after the suggested GC.start.

Poor workers blame their tools. Good workers build better tools. The
best workers get their tools to do the work for them. -- Syndicate Wars

More information about the Rubygems-developers mailing list