lua-users home
lua-l archive

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

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.