LuaPlus' LUA_REFCOUNT implementation for Lua 5.1 exists at [1]. I removed it years ago in the next commit, but it is there for reference.
It shipped in a number of commercial products using the reference counting implementation [2].
There are discussions within the Lua mailing list archives about its performance and memory improvements, but you would have to search them out using 'luarc'.
-Josh
Doug Currie wrote on 10/6/2020 9:22 AM:
On Oct 6, 2020 at 11:00:18 AM, 逸霖 杨 <yyl_20050115@hotmail.com> wrote:
[…]
I need help to get a better understanding on where to apply reference counting (where to increase reference count and where to decrease reference count).
Disclaimer: I have never used LuaRC-5.1
e