Contains vs is in

Mike Kerner MikeKerner at roadrunner.com
Mon Jan 2 22:30:17 EST 2017


says the guy who doesn't scrape.

On Mon, Jan 2, 2017 at 6:14 PM, Richard Gaskin <ambassador at fourthworld.com>
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. :)
>
> --
>  Richard Gaskin
>  Fourth World Systems
>  Software Design and Development for the Desktop, Mobile, and the Web
>  ____________________________________________________________________
>  Ambassador at FourthWorld.com                http://www.FourthWorld.com
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



-- 
On the first day, God created the heavens and the Earth
On the second day, God created the oceans.
On the third day, God put the animals on hold for a few hours,
   and did a little diving.
And God said, "This is good."



More information about the use-livecode mailing list