[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Question about Lua performance (locals vs globals)
- From: "Javier Guerra" <javier@...>
- Date: Tue, 5 Aug 2008 17:16:37 -0500
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