Re: list-building performance
Re: list-building performance
- Subject: Re: list-building performance
- From: KOENIG Yvan <email@hidden>
- Date: Sat, 2 Jun 2007 11:09:25 +0200
Le 2 juin 07 à 11:03:51, Nigel Redmon a écrit :
…
property theList1 : {}
set noteOn to false
set startTime to (time of (current date))
set theList1 to {}
set timeStamp to 0
repeat with idx from 1 to 2000
set end of my theList1 to {timeStamp, noteOn, 60, 100}
set end of my theList1 to {timeStamp + 1, noteOn, 60, 0}
set timeStamp to timeStamp + 1
end repeat
(time of (current date)) - startTime
…
maybe this variant may be faster
property theList1 : {}
set noteOn to false
set startTime to (time of (current date))
set theList1 to {}
set timeStamp to 0
repeat 2000 times
set end of my theList1 to {{timeStamp, noteOn, 60, 100}, {timeStamp
+ 1, noteOn, 60, 0}}
set timeStamp to timeStamp + 1
end repeat
(time of (current date)) - startTime
Yvan KOENIG
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden