• 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: 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.

  • Follow-Ups:
    • Re: Unique Items in a text file
      • From: Deivy Petrescu <email@hidden>
    • Re: Unique Items in a text file
      • From: Paul Berkowitz <email@hidden>
References: 
 >Re: Unique Items in a text file (From: Emmanuel <email@hidden>)
 >Re: Unique Items in a text file (From: Deivy Petrescu <email@hidden>)

  • Prev by Date: Re: Activating applet or app?
  • Next by Date: Quark text box Inset
  • Previous by thread: Re: Unique Items in a text file
  • Next by thread: Re: Unique Items in a text file
  • Index(es):
    • Date
    • Thread