[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Lua: Performance
- From: Mark Hamburg <mark@...>
- Date: Mon, 21 Jul 2008 08:24:58 -0700
On Jul 21, 2008, at 6:03 AM, Manish Jain wrote:
2) we are using very less number of global variables.
Remember that global variable usage can be subtle for those coming
from other languages. For example, calling string.format takes two
table lookups in addition to the function call. If you cache
string.format in a local variable, you eliminate those.