lua-users home
lua-l archive

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

Roberto Ierusalimschy <> 于2021年10月12日周二 上午12:40写道:

> I quickly tested that in two Intel i7. As expected, memory use
> by arrays is cut by almost half (9/16). Maybe unexpected, I did

How about store the Value and the type separately? And we can optimize
the array with the same type, something like integer arrays.

We may also need to change luaH_get* to return the value of TValue
instead of `const TValue *`.