Re: Unique Items in a text file
Re: Unique Items in a text file
- Subject: Re: Unique Items in a text file
- From: Emmanuel <email@hidden>
- Date: Mon, 8 Apr 2002 18:46:30 +0200
At 3:19 PM +0200 8/4/02, Deivy Petrescu wrote:
>
>
Emmanuel, since I may have missed the thread, is this "new" sort
>
routine different than the one you posted previously?
Serge Belleudy-d'Espinose has noticed that the access to lists is
dramatically accelerated by making the list into a property of an object
script. Something like:
----------------------
script accelerator
property theList:{}
end
...
set accelerator's theList to myBigList
-- then, access only "accelerator's theList"
----------------------
Implementing this trick speeds up the "sort" routine much (I think that the
access times turn from O(N2) or O(N3) to O(N.LogN)).
Except for that, no big change.
You can find that accelerated handler as the "sort" handler of the "Text
Window" class script of the "1.8.4->1.8.7 upgrade" of Smile, available at
<
http://homepage.mac.com/satimage> (don't use the upgrade though).
Emmanuel
_______________________________________________
applescript-users mailing list | email@hidden
Help/Unsubscribe/Archives:
http://www.lists.apple.com/mailman/listinfo/applescript-users
Do not post admin requests to the list. They will be ignored.