[aquaria] Patch to run Lua scripts as threads
Ryan C. Gordon
icculus at icculus.org
Tue Jun 29 03:05:55 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.
--ryan.
More information about the aquaria
mailing list