Re: Unique Items in a text file
Re: Unique Items in a text file
- Subject: Re: Unique Items in a text file
- From: Deivy Petrescu <email@hidden>
- Date: Wed, 10 Apr 2002 05:10:18 -0400
At 6:46 PM +0200 4/8/02, Emmanuel wrote:
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
Thanks Emmanuel and Serge.
I'll try this on the library to solve linear systems and see what
kind of improvements one gets.
As soon as time permits...
Regards
--
Deivy Petrescu
http://www.dicas.com
_______________________________________________
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.