• 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: Unique Items in a text file
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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.

References: 
 >Re: Unique Items in a text file (From: Emmanuel <email@hidden>)
 >Re: Unique Items in a text file (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: Finder Version Wrong in OS X
  • Next by Date: Re: Internet Shortcut _ Urgent
  • Previous by thread: Re: Unique Items in a text file
  • Next by thread: Re: Unique Items in a text file
  • Index(es):
    • Date
    • Thread