Contains vs is in

Richard Gaskin ambassador at fourthworld.com
Tue Jan 3 11:36:49 EST 2017


?

-- 
  Richard Gaskin
  Fourth World Systems

Mike Kerner wrote:

> says the guy who doesn't scrape.
>
> On Mon, Jan 2, 2017 at 6:14 PM, Richard Gaskin wrote:
>
>> hh wrote:
>>
>> > I wasn't aware of that, good to know, "is in"/"contains" is 10%
>> > faster than "offset() > 0".
>>
>> But as with many benchmarks, it's helpful to keep the absolute times in
>> mind.
>>
>> In my quickie test script I had to use 1,000,000 iterations just to get
>> any appreciable duration to test.
>>
>> 10% of a fraction is a nanosecond isn't much to lose sleep over. :)





More information about the use-livecode mailing list