lua-users home
lua-l archive

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


>Could somebody point me in the direction of an explanation for why there is
>such a big difference in performance when indexing a local vs. global
>variable?

A global variable is accessed via a hash table.
A local variable is accessed an index into an array.
--lhf