[aquaria] Patch to run Lua scripts as threads
Andrew Church
achurch+aquaria at achurch.org
Tue Jun 29 16:40:05 EDT 2010
>> think I read that local variables are also faster than globals, though
>> I can't recall the reference at the moment.
>
>They are faster; global variables go through a table lookup for each
>access, locals do not.
>
>You'd be hard-pressed to call this a serious performance issue in
>practice, though. But if you're benchmarking for just this, you'll find
>locals are in fact cheaper in Lua.
As it happens, I'm running into serious cache thrashing issues on the
PSP, so who knows -- it just might make a difference. (: But in any
case, I wasn't advocating that as the primary reason for switching,
just mentioning it as an added benefit.
--Andrew Church
achurch at achurch.org
http://achurch.org/
More information about the aquaria
mailing list