lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

On 14/06/2012, at 10:22 AM, Coda Highland wrote:

> numeric for is faster anyway (which is clearly important to you).

Where does this idea come from?  If speed is important to you (and you're doing so little work in your loop that overheads matter), then you should probably benchmark.  I did a silly little benchmark [1] and with LuaJIT, there's not much of a difference between ipairs and a numeric for.