POV-Ray : Newsgroups : povray.off-topic : A tale of two cities : Re: A tale of two cities Server Time
29 Jul 2024 16:20:56 EDT (-0400)
  Re: A tale of two cities  
From: Darren New
Date: 15 Mar 2012 00:00:59
Message: <4f61697b$1@news.povray.org>
On 3/14/2012 10:52, clipka wrote:
> But doesn't the "this-pointer tracking" in a reference-tracking GC approach
> incur approximately that very same penalty?

No, because it's not counting references. The efficiency of GC over RC is to 
a large extent the elimination of updating something every time you assign a 
pointer.  The GC runs, sees a reference to B on the stack, and avoids 
discarding B.  C++ programs don't have access to the stack per se, so they 
can't do that sort of thing.

-- 
Darren New, San Diego CA, USA (PST)
   People tell me I am the counter-example.


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.