• 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
cost of repeats (was Re: why is applescript so slow???)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

cost of repeats (was Re: why is applescript so slow???)


  • Subject: cost of repeats (was Re: why is applescript so slow???)
  • From: "halloolli" <email@hidden>
  • Date: Wed, 1 Dec 2004 13:06:46 +1100

From: "wayne melrose" <email@hidden>

After a quick glance at your code, and I mean quick, I would suggest trying to put your repeats into the same loop..

pardon, so, given the two scripts

(1)     repeat with i in theList
           do_one_thing
       end repeat
       repeat with i in theList
           do_another_thing
       end repeat

and

(2)     repeat with i in theList
           do_one_thing
           do_another_thing
       end repeat



does your statement mean that script (1) is substantially slower then (2)? well, i might do some tests, but in the meanwhile i want to ask: why does a loop itself shall cost so much?

thanks, olli


_______________________________________________ Do not post admin requests to the list. They will be ignored. Applescript-users mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: cost of repeats (was Re: why is applescript so slow???)
      • From: Jake Pietrykowski <email@hidden>
References: 
 >why is applescript so slow??? (From: "halloolli" <email@hidden>)
 >Re: why is applescript so slow??? (From: wayne melrose <email@hidden>)

  • Prev by Date: Re: set variables, in mass
  • Next by Date: Re: cost of repeats (was Re: why is applescript so slow???)
  • Previous by thread: Re: why is applescript so slow???
  • Next by thread: Re: cost of repeats (was Re: why is applescript so slow???)
  • Index(es):
    • Date
    • Thread