lua-users home
lua-l archive

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


On 08/07/2014 03:10 PM, Mason Mackaman wrote:
for the following, ‘str’ is some string value.

So I just tested the speed of str:len() and string.len(str)
Are str and string both locals, or both globals or mixed?

To make a fair comparison I would use either global for both or local for borth.
--
Thomas