> This seems so strange to me; In the regular lua interpreter we > obviously gain (by removing 2 hash lookups in your example) Yes, but the Lua interpreter does not do the kinds of optimizations a typical C compiler will do.