cost of repeats (was Re: why is applescript so slow???)
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