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

Berger, Daniel Daniel.Berger at qwest.com
Fri Oct 5 11:14:57 EDT 2007

> -----Original Message-----
> From: rubygems-developers-bounces at rubyforge.org 
> [mailto:rubygems-developers-bounces at rubyforge.org] On Behalf 
> Of Eric Hodel
> Sent: Friday, October 05, 2007 9:13 AM
> To: rubygems-developers at rubyforge.org
> Subject: Re: [Rubygems-developers] GC.start after "require 'rubygems'"
> 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.

Excellent, good to know. :)



This communication is the property of Qwest and may contain confidential or
privileged information. Unauthorized use of this communication is strictly 
prohibited and may be unlawful.  If you have received this communication 
in error, please immediately notify the sender by reply e-mail and destroy 
all copies of the communication and any attachments.

More information about the Rubygems-developers mailing list