Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: list-building performance



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: http://lists.apple.com/mailman/options/applescript-users/email@hidden Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden
References: 
 >list-building performance (From: Nigel Redmon <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.