What method of sorting through, and getting all the objects in a table, is faster?
for _, x in next, table do
print(x)
end
--or
for i = 1, #table do
local x = table[i]
print(x)
end
These are going to be sorting through a lot of objects at a time (up to 1000) so I'd like to know which one is better for performance, OR if there's one faster that I'm not using :)
