From: Daniel Berger Date: 2008-03-15T00:00:05+09:00 Subject: Re: Copy-on-write friendly garbage collector On Fri, Mar 14, 2008 at 5:25 AM, Hongli Lai wrote: > Daniel DeLorme wrote: > > So the GC method could be dynamically changed to cow-friendly just > > before doing a Process.fork... very nice! > > Actually, I'm thinking about requiring the script call "GC.cow_friendly > = true". Most scripts do not fork, and when they do, they usually don't > use it as a means to save memory. I recommend against this. Most people are simply not going to know when they should invoke it and when they shouldn't. It's an implementation detail that should be hidden from the user IMHO. Besides, it really worth splitting it out like this over a 5% speed hit? Or am I missing some other implementation detail? Regards, Dan