• 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
Maximum list size [was Re: Sifting a list sans loop]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Maximum list size [was Re: Sifting a list sans loop]


  • Subject: Maximum list size [was Re: Sifting a list sans loop]
  • From: "Marc K. Myers" <email@hidden>
  • Date: Tue, 29 Jan 2002 12:37:26 -0500
  • Organization: [very little]

> Date: Tue, 29 Jan 2002 02:30:45 -0600
> From: ehsan saffari <email@hidden>
> Subject: Re: Sifting a list sans loop
> To: AS Users <email@hidden>
>
> On 28 Jan 2002 10:15:04 -0500, Arthur J Knapp <email@hidden>
> wrote:
>
> > set newList to every string of bigList
> >
> > This works for almost any AppleScript type-class. One word
> >of caution: for a list of 5000 items, you might run into
> >AppleScript's upper limit for returning a list, approx 4050
> >some items or so:
-- Snip! --
> So what is the limit for the number of items when returning a list, and
> what syntax might invoke it?

I was wondering the same thing myself. When I generated all the prime
numbers up to 50000 I created a list with 41537 members. I had put
error handling in the script to capture the point at which the list
"broke" and it never did. Then I set up a script that would build a
list with 1000000 members and it worked fine up to the point where I got
bored and stopped it, around a quarter of a million members. I found
that the process, even using a reference to the list and using "set end
to..." became very slow after 200000 members. It appeared to slow down
steadily the more members there were in the list.

Is there a limit to list size, other than available memory? Why does
adding items to the end of a list get slow when the list is large?

Marc K. Myers <email@hidden>
http://AppleScriptsToGo.com
4020 W.220th St.
Fairview Park, OH 44126
(440) 331-1074

[1/29/02 12:36:05 PM]


  • Follow-Ups:
    • Re: Maximum list size [was Re: Sifting a list sans loop]
      • From: email@hidden (Michael Sullivan)
  • Prev by Date: Re: ITunes -- any way to make it scriptable?
  • Next by Date: Re: storing last date ran as a property
  • Previous by thread: AS 1.8.2b1 and remote scripting "host hang"
  • Next by thread: Re: Maximum list size [was Re: Sifting a list sans loop]
  • Index(es):
    • Date
    • Thread