From: Tim Hunter Date: 2007-06-26T08:00:41+09:00 Subject: Re: Clearing the RAM 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? > I think the only way you could do that (or at least the only practical way) would be to define a special-purpose class in a C extension and use instances of the class to allocate the memory and control whatever goes into it. When GC says you can free the memory then you can set it to all-bits-0 or whatever other action constitutes "clearing." -- RMagick OS X Installer [http://rubyforge.org/projects/rmagick/] RMagick Hints & Tips [http://rubyforge.org/forum/forum.php?forum_id=1618] RMagick Installation FAQ [http://rmagick.rubyforge.org/install-faq.html]