From: Mikel Lindsaar Date: 2007-07-03T08:10:45+09:00 Subject: Re: Clearing the RAM Then just fire up the garbage collector explicitly. Ruby already does it's own garbage collection, but you can explicitly tell it to by putting GC.start in your code after a heavy memory action. Also good to nil out any variables that you know you have finished with to give the GC a good heads up on which memory blocks it can safely ditch. See http://www.ruby-doc.org/core/classes/GC.html for the API Regards Mikel On 7/3/07, Ari Brown wrote: > I mean freeing it. > > On Jul 1, 2007, at 12:43 PM, SonOfLilit wrote: > > > Do you mean zero it to disallow peeking, or do you mean freeing it? > > > > > > Aur > > > > On 6/26/07, Ari Brown wrote: > >> Hey, > >> I was wondering, is there a way to clear the RAM Ruby uses in some > >> code? For instance, if I read in an entire file into the memory, can > >> I clear the RAM that was used? > >> > >> thanks, > >> ~ Ari > >> English is like a pseudo-random number generator - there are a > >> bajillion rules to it, but nobody cares. > >> > >> > >> > > > > > > ~ Ari > English is like a pseudo-random number generator - there are a > bajillion rules to it, but nobody cares. > > >