The speed of MC

Yennie at aol.com Yennie at aol.com
Tue Apr 1 14:53:01 EST 2003


Try this script... it seems to indicate that they are usually pretty close, 
with the exception coming when the desired item is close the front of a large 
list, in which case itemOffset() sometimes runs much faster:

on mouseUp
   local theList

   repeat 1000
     put random(1000)&comma after theList
   end repeat
   
   delete last char of theList
   put random(1000) into theNumber
   
   put the milliseconds into startTime1
   repeat 1000
     put itemOffset(theNumber, theList) into theOffset
   end repeat
   put the milliseconds into endTime1
   put (endTime1 - startTime1) into offsetTime
   
   put the milliseconds into startTime2
   repeat 1000
     put (theNumber is among the items of theList) into isAmong
   end repeat
   put the milliseconds into endTime2
   put (endTime2 - startTime2) into amongTime
   
   answer "ItemOffset:"&&offsetTime&&theOffset&cr&"Among:"&&amongTime&&
isAmong
end mouseUp


> Is "is among the lines" or "is within" faster than say:
> 
> get lineOffSet(cr & thisStr & cr,cr & reallyBigVar & cr) ?
> 
> Has anyone run speed tests?
> 





------------------------------
Brian Yennie
Chief Technology Officer
QLD Learning, LLC
www.QLDLearning.com

PH: (904)-997-0212
EMAIL: Yennie at aol.com
-------------------------------
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.runrev.com/pipermail/metacard/attachments/20030401/b2ce990b/attachment.htm


More information about the metacard mailing list