>> 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.