lua-users home
lua-l archive

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


I mean in LuaJIT it's TValue, but in Lua it's probably Proto that needs split

On Fri, Nov 13, 2020 at 4:52 AM Ranier Vilela <ranier.vf@gmail.com> wrote:
Em qui., 12 de nov. de 2020 às 21:00, Spar <developspartv@gmail.com> escreveu:
Hi. The link just go down, here is working link for sure: https://github.com/GitSparTV/lua-infographics/tree/main/lua-benchmark/

Sharing my knowledge.
I was learning LuaJIT bytecode some time ago, and discovered that for 64bit versions the TValue struct is actually shared between 2 TValues objects.
As assume this is done for pointer/RAM optimizations.
I don't think TValue is a problem, in 64 bits the size of the structure is 16.

regards,
Ranier Vilela