lua-users home
lua-l archive

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

Phil Leblanc <>于2018年6月11日周一 上午3:21写道:
>> What are my other options to reduce the size? (...)

> You may get rid off the metatable, it can reduce many codes.

I am curious about this. Has anybody built a Lua derivative without metatables?

Is it feasible? or are metatables too deeply intricated with the Lua VM?

What would be the gain? (executable footprint, performance?)

I try to do some quick and dirty works to remove metatable from lua VM (not test yet) . It can reduce about 5K executable footprint or more . I haven't remove metatable pointer from struct  Table and Udata yet, maybe it can reduce a little memory at runtime.

Attachment: removemt.diff
Description: Binary data