|
implementation | Lua memory | LuaJit memory | Lua speed | LuaJit speed |
---|---|---|---|---|
closures (no self) | 95.6 Mb | 62.6 Mb | 11’821 ms | 355 ms |
metatable | 40.4 Mb | 29.8 Mb | 17’004 ms |
323 ms |
Gaspard Bucher wrote:Yes.
> From your comments, I understand that I should use the metatable approach
> since LuaJit can do more optimizations on them and memory usage is lower, is
> this correct ?
--Mike