• 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: "Mark J. Reed" <email@hidden>
  • Date: Sat, 2 Jun 2007 01:29:32 -0400

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. If I declare theList1 as a property the runtime drops by more than an order of magnitude OMM: from 24 seconds to less than 1 second for your 2000 iterations. To get something measurable, I added a zero and did 20,000 iterations; that took 3 seconds. 50,000 iterations was also 3 seconds, 75000 11 seconds, and 100,000 took 28 seconds - so I had to multiply the iteration count by 50 to slow it down to the level of the propertyless version..


-- Mark J. Reed <email@hidden> _______________________________________________ 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
References: 
 >list-building performance (From: Nigel Redmon <email@hidden>)

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