• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: list-building performance
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: list-building performance


  • Subject: Re: list-building performance
  • From: Nigel Redmon <email@hidden>
  • Date: Sat, 2 Jun 2007 02:03:51 -0700

Wow, yeah, that sure did it--I'll have to think about why, but I won't do that at 2am--thank you both for the replies.

[btw, noteOn wasn't defined in the script because it's en enumerated type (notice it's blue in the listing), defined by a scripting addition I'm writing.]


On Jun 1, 2007, at 10:18 PM, KOENIG Yvan wrote:
this small changes fasten it drastically:

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

noteon was not defined in your original script.


On Jun 1, 2007, at 10:29 PM, Mark J. Reed wrote:
On 6/1/07, Nigel Redmon <email@hidden> wrote:
Surely there must be an efficient way to append something to the end of a long
list--am I missing something?

Only the fact that doing this through properties is faster.
_______________________________________________
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
  • Follow-Ups:
    • Re: list-building performance
      • From: "Mark J. Reed" <email@hidden>
    • Re: list-building performance
      • From: KOENIG Yvan <email@hidden>
References: 
 >list-building performance (From: Nigel Redmon <email@hidden>)
 >Re: list-building performance (From: KOENIG Yvan <email@hidden>)

  • Prev by Date: GUI TextEdit (solved)
  • Next by Date: Re: list-building performance
  • Previous by thread: Re: list-building performance
  • Next by thread: Re: list-building performance
  • Index(es):
    • Date
    • Thread