4 ms·
Slightly related: Lua will intern every string ever created, that is two strings are equal if and only if their pointers (as represented internally) are identic
by jmaa 8y ago
Slightly related: Lua will intern every string ever created, that is two strings are equal if and only if their pointers (as represented internally) are identical. This results in slow string creation, but very fast equality checking and lookups, as it converts the problem to comparing integers.