|
replacing them by a more efficient indexed access (i.e. we know that field X is at offset 0, field Y at offset 4, etc) similar to what C compiler does or something like that? I think some JavaSctipt JITs and probably LuaJIT do something like this. But could Lua VM do a similar thing when it determines that a structure of the table never changes after a certain point in time?