Posted 02 January 2017 - 10:58 PM
Two methods to get the same result, what's faster (Not creation, just access speed)?
(Pseudo code)
(Pseudo code)
(Pseudo code)
{
5 = object,
6 = object,
7 = object,
8 = object,
9 = object,
}
(Pseudo code)
{}, metatable:
{
__index = function(_, i)
if i >= 5 and <= 9 then
return object
end
end
}
Edited on 02 January 2017 - 09:59 PM