[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: How fast is LuaJIT supposed to be?
- From: Miles Bader <miles@...>
- Date: Sat, 22 Jan 2011 17:05:39 +0900
Steve Litt <slitt@troubleshooters.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).
-miles
--
Advice, n. The smallest current coin.