[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: LuaJIT2 bug: 'mytable[mystring] or 0' wrongly 0
- From: Roberto Ierusalimschy <roberto@...>
- Date: Mon, 16 Nov 2009 22:29:10 -0200
> > BTW: You'll get better performance if you don't fill the rd
> > array backwards. It degrades into a hash table in this case.
> That probably also applies to plain Lua.
It degrades into a hash while it is being filled, but when it finishes
I think the result is always a pure array. (I proved this some time
ago, but I am not sure the algorithm is still exactly the same.)