• 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: Paul Berkowitz <email@hidden>
  • Date: Tue, 09 Apr 2002 06:16:13 -0700

On 4/8/02 9:46 AM, "Emmanuel" <email@hidden> wrote:

> 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,

There isn't any 'sort' handler in "Text Window" there (although 'Compare'
looks rather familiar), but there is one in the "Application" script of the
1.8.4-->1.8.7 upgrader that looks as if it must be the one. It contains :

-- credits to SBE & FD
<snip>
script listHolder
property theList : {}
property lowList : {}
property highList : {}
end script
set listHolder's theList to theList
<snip>

Yes?

--
Paul Berkowitz
_______________________________________________
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: Emmanuel <email@hidden>
References: 
 >Re: Unique Items in a text file (From: Emmanuel <email@hidden>)

  • Prev by Date: Re: Unique Items in a text file
  • Next by Date: Re: Valentina
  • Previous by thread: Re: Unique Items in a text file
  • Next by thread: Re: Unique Items in a text file
  • Index(es):
    • Date
    • Thread