[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: luajit: any way to make array initialization zero-based?
- From: Geoff Leyland <geoff_leyland@...>
- Date: Thu, 14 Jun 2012 10:52:43 +1200
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  and with LuaJIT, there's not much of a difference between ipairs and a numeric for.