Originally Posted by SaraFdS
Intuitively I'd choose the latter, thinking that Lua itself can do it faster than doing it in Lua. But if you have really large tables, it's probably better to benchmark it beforehand.
|
The later is faster while the first would be simpler for someone that knows nothing of Lua, the end user perhaps, to maintain.