[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: string.len(str) vs str:len()
- From: Mason Mackaman <masondeanm@...>
- Date: Thu, 7 Aug 2014 08:23:31 -0500
They were both globals.
On Aug 7, 2014, at 8:22 AM, Thomas Jericke <tjericke@indel.ch> wrote:
> 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
>