lua-marshal
lua-marshal copied to clipboard
fast table serialization for Lua
A nil upvalue makes lua_objlen stop counting leaving following upvalues nil as well instead explicitly store ar.nups when the table is created lmarshal.c#L224 `lua_newtable(L);` `for (i=1; i
Work in progress
Hi, I'm working on merging this tool to Lua53. And I found https://github.com/richardhundt/lua-marshal/blob/master/test.lua#L64 failed because print is C function. Does it suppose to work or fail?
The same way that a 'seen' table is used for shared references, upvalues shared by closures could be detected using lua_upvalueid and later their linkage restored using lua_upvaluejoin.