lua-users home
lua-l archive

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

On 9/12/05, Tim Gogolin <> wrote:
> Locals are found at runtime as an array
> access (by index), whereas table lookups are a hash table lookup.
> So this is probably just an attempt to make frequently used function
> calls execute a little faster.

Ah.  So could this be considered a "best practices" convention, or at
least a recommended optimization?  (Is there a "best practices" or
"recommendations" section somewhere on the Lua site?)

Thanks, Tim.