From: Robert Klemme Date: 2011-05-19T16:44:26+09:00 Subject: Re: Manual Memory Management and Automatic Garbage Collection On Thu, May 19, 2011 at 12:43 AM, Tridib Bandopadhyay wrote: > Robert K. wrote in post #999427: >> On Tue, May 17, 2011 at 9:58 PM, Tridib Bandopadhyay >> wrote: >> What I do not understand: what is the aim of your research?  I mean, >> people have spent numerous hours of research and engineering to make >> automatic GC work, and you seem to be mainly concerned with adding >> manual memory management to a language which has automatic GC.  What >> is the point of your research? > Yeah i know that.. But since Ruby is Using Stop the World concept. So I > was thinking of not letting the GC to come and free memory every time > for small objects,Stopping the code. So I just want to check if it can > be helpful or not... Did you mean to include manual cleanup of particular instances which are known to be not used any more (e.g. when a method is left)? In that case keep in mind that it is hard to know which objects can be collected because you do not know what other objects local variable hold or create and you also do not know whether references of objects in local variables are published somewhere else so they have to live longer than the stack frame where their local variable reference is stored. Cheers robert -- remember.guy do |as, often| as.you_can - without end http://blog.rubybestpractices.com/