Table accesses in Lua work similarly for both number keys and string keys, so in this case you’re using a hash map either way. Tables with number keys are not contiguous (as suggested by this), and thus don’t have the memory or access speed advantages of arrays.