From: William Djaja Tjokroaminata Date: 2002-08-29T02:31:01+09:00 Subject: Re: Temporary VALUE Needs to Be Protected? Hi, Yes, I probably feel the same way as you do. The more I know about the extent of the Ruby garbage collector, the more concerned I am with its impact on execution performance. I think I am using Ruby in some sense not in its original intended purpose. For my current application, I am using Ruby more like "a user interface" then a full-blown programming tool. The core computation is done in C and therefore for efficiency purpose I have moved a lot of data to C struct members instead of Ruby's "@" internal data. As I am trying to separate Ruby object model from its memory management, issues like this really come out. Has anybody really done a C programming in the presence of a (mark & sweep) garbage collector (besides doing C programming within the scripting languages)? Regards, Bill ============================================================================ Mauricio Fern?ndez wrote: > On Wed, Aug 28, 2002 at 06:03:41PM +0900, Christian Szegedy wrote: >> The Ruby garbage collector scans the used part of the stack, >> and registers all addresses found there. This may be too much, >> but it does not matter. (That was matzs commment about the >> "conservativness of the gc") > What is the performance impact of Ruby's GC being conservative? > <=> How large is the C-stack usually? > Couldn't we use some preprocessor-magic to mark the pointers as they're > created?