lua-users home
lua-l archive

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


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.