lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


On 4/16/19, Coda Highland <chighland@gmail.com> 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.