lua-users home
lua-l archive

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


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

[1] https://github.com/jjensen/luaplus51-all/tree/cdd2b00b13b3857cb7c20646198e4f3d28f282cd/Src/LuaPlus/src
[2] http://lua-users.org/lists/lua-l/2003-06/msg00577.html

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).

You may find some hints and inspiration from https://github.com/zenkj/luarc-5.1
Disclaimer: I have never used LuaRC-5.1

e