Anyway, what I was going to send. Are you aware that many of these
micro optimizations are cargo cult from a bygone age of simpler
Yes, there is an inheritance there.
But keep in mind, that Lua is compiled in a huge variety of environments and compilers.
And not everyone is lucky enough to have a super efficient compiler available.
In addition, small discrepancies can penalize some hotpath, even in a modern compiler.
Make it clear to the compiler that you can optimize, for sure, will generate better code.