[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: reference counting
- From: Jim <djvaios@...>
- Date: Thu, 18 Apr 2019 13:25:27 +0200
On 4/16/19, Coda Highland <firstname.lastname@example.org> wrote:
>> Reference counting have stalls problem, too. And not always smoother than
>> gc. For example, releasing a very long linked list.
yes, releasing lots of allocated objects at once could take
some time and hence stall the application.
> Reference counting also has issues with circularly-linked objects, which gc
> manages near-effortlessly.
yes, reference cycles are indeed problematic.
> As always, you must choose the right tool for the job.
yes, that's why it could benefit the programmer to be able
to use gc (by default) or reference counting (by indicating so)
in situations where this would be more appropriate.