[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: How fast is LuaJIT supposed to be?
- From: Miles Bader <miles@...>
- Date: Sat, 22 Jan 2011 17:05:39 +0900
Steve Litt <email@example.com> writes:
> How much slower? To my way of thinking, tables of key/value pairs are the
> heart and soul of Lua. I'd hate to start worrying about speed when using them.
Don't worry about it.
Table lookup is very fast; it's just that local variables are even
_faster_, because using them involves almost no computation at all
(they just reference a stack slot; there's no "lookup" by name involved).
Advice, n. The smallest current coin.