|
Would it be good, show how reference counting can improve the actual garbage
collector?
I'm not an expert in GC and this is a harder arena.
Reference Counting is another way to implement automatic memory management.
Therefore, it's not a improvement for GC. It's something else.
GC has its advantages. However, there is situation such as a smoother memory usage would need
reference counting.
Your idea is applicable to add reference counting for the userdata objects?
As I see, Userdata (not the light version) is OK for RC, just like it's OK for GC.
GCObjects can be all supported by reference counting, and other primitive typed objects has no need to be supported just like
not supported by GC.
From: Ranier Vilela <ranier.vf@gmail.com>
Sent: Tuesday, October 6, 2020 3:54 PM To: Lua mailing list <lua-l@lists.lua.org> Subject: Re: I need some help on some ideas Em ter., 6 de out. de 2020 às 12:01, 逸霖 杨 <yyl_20050115@hotmail.com> escreveu:
Would it be good, show how reference counting can improve the actual garbage
collector?
I'm not an expert in GC and this is a harder arena.
Your idea is applicable to add reference counting for the userdata objects?
regards,
Ranier Vilela
|