5 ms·
Yeah, but it's hard to argue with the fact that pairs/ipairs in loops are 25% to 2.5x slower than using `for i = 1,#tbl do v = tbl[i] end`. Performance isn't e
by notpeter 4y ago
Yeah, but it's hard to argue with the fact that pairs/ipairs in loops are 25% to 2.5x slower than using `for i = 1,#tbl do v = tbl[i] end`. Performance isn't everything, but it's not nothing either.
https://springrts.com/wiki/Lua_Performance#TEST_9:_for-loops https://springrts.com/wiki/Lua_Performance#TEST_9:_for-loops