[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua Basics: modules()?
- From: William Trenker <wtrenker@...>
- Date: Mon, 12 Sep 2005 15:54:02 -0400
On 9/12/05, Tim Gogolin <tgogolin@adobe.com> 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.
Cheers,
Bill