function for greatest object in list less than or equal to a value

Peter TB Brett peter.brett at livecode.com
Mon Oct 12 11:23:04 EDT 2015



On 12/10/2015 15:24, dunbarx at aol.com wrote:
> I made a test between the "sort" method and the "repeat for each". For a list of about 100,000 items, sort finds the max value in 33 ticks, and "repeat" takes 50 ticks.
>
> This seems logical to me, since lower level operations are used in "sort" as opposed to "repeat" even though we all know how fast "repeat for each" is.
>

That's really surprising!  Could you please share your test stack so I 
can have a play?

                                Peter

-- 
Dr Peter Brett <peter.brett at livecode.com>
LiveCode Open Source Team

LiveCode on reddit: https://reddit.com/r/livecode




More information about the use-livecode mailing list