[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: packed structures
- From: 云风 Cloud Wu <cloudwu@...>
- Date: Tue, 12 Oct 2021 10:41:52 +0800
Roberto Ierusalimschy <roberto@inf.puc-rio.br> 于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 *`.
--
http://blog.codingnow.com