lua-users home
lua-l archive

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


On Tue, Aug 5, 2008 at 4:50 PM, Chris Camfield
<chris-camfield@koeicanada.ca> wrote:
> Hi all,
>
> I understand from previous threads that using globals is more expensive than
> locals.  What I'd like to ask is - is this based simply on the number of
> table lookups, or is there anything beyond that?  I assume that the cost of
> any table lookup is equal, including referencing "self".  Is that right?

right, but locals aren't stored on a table (much less on 'self')

-- 
Javier