Contains vs is in

Richard Gaskin ambassador at fourthworld.com
Mon Jan 2 18:14:00 EST 2017


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. :)

-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com




More information about the use-livecode mailing list