lua-users home
lua-l archive

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


On Mon, Jul 5, 2010 at 06:41, Brian Weed <brianw@imaginengine.com> wrote:
>>> Lua is probably quite fast already even if you only use global
> variables, ie, don't bother with locals.
>
> That's been our experience.
>
> We use Lua to script almost all of our games, and we've never once
> localized a global (for performance, or any other reason), because it's
> not a bottleneck, and we don't waste time "optimizing" stuff that's not
> a bottleneck.
>
> Brian
>

Premature optimization is the root of all evil, after all.

-- 
Sent from my toaster.