From: nobuyoshi nakada Date: 2005-08-11T10:29:29+09:00 Subject: Re: force_recycle Hi, At Thu, 11 Aug 2005 00:16:10 +0900, Kroeger Simon (ext) wrote in [ruby-talk:151514]: > but that's ok. I have a rather large project here and it is eating > memory. I thought it would be nice to delete the objects we think are > obsolet and see where it goes down. The wrong thing is that you misuse GC to maintain expensive (or external) resources. Use a releasing method and blocks to ensure they get called. http://www.rubyist.net/~matz/slides/oscon2005/mgp00047.html http://www.rubyist.net/~matz/slides/oscon2005/mgp00048.html http://www.rubyist.net/~matz/slides/oscon2005/mgp00049.html -- Nobu Nakada