Smart pointers instead of GC?

Paulo Pinto pjmlp at progtools.org
Mon Feb 3 23:31:25 PST 2014


On Tuesday, 4 February 2014 at 02:05:07 UTC, Nick Sabalausky 
wrote:
> On 2/3/2014 4:13 PM, H. S. Teoh wrote:
>> I've seen real-life
>> examples of ARCs gone horribly, horribly wrong, whereas had a 
>> GC been
>> used in the first place things wouldn't have gone down that 
>> route.
>>
>
> I'm curious to hear more about this.

An example is when you have a huge graph and the root reaches it 
count == 0.

The time taken into a cascading deletes of the whole structure is 
similar to a stop-the-world GC pause.


--
Paulo


More information about the Digitalmars-d mailing list