• 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: Slow vs faster
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Slow vs faster


  • Subject: Re: Slow vs faster
  • From: "Nigel Garvey" <email@hidden>
  • Date: Sat, 8 Jan 2011 11:11:16 +0000

Axel Luttgens wrote on Sat, 8 Jan 2011 11:33:01 +0100:

>Le 8 janv. 2011 à 11:21, Nigel Garvey a écrit :
>
>> [...]
>>
>> I found the second version faster too. At first I assumed it was because
>> of the different kinds of repeat, but the major contributor seems to be
>> the coercion to alias in the second version. Remove it from the second
>> version, or introduce it into the first, and they run at very nearly the
>> same speed.
>
>Hello Nigel,
>
>It thus seems we are disagreeing. ;-)
>Could you post the code you have tested?

Hi, Axel.

I tested the very handlers posted by Luther, in separate scripts, with
identical lines in the implicit run handlers to set the top folder of
the hierarchy (as alias) and to time the handler calls. The tests were
run from AppleScript Editor in OS 10.6.6 with all Finder windows
initially closed. Both scripts were run a couple times to "run them in"
before the actual timing runs. The hierarchy itself is inside my
Documents folder and contains six subfolders, each each of which
contains various numbers of sub-sub- and sub-sub-sub-folders. (85
folders in all, including the root.)

Typical timings for Luther's first handler: 7.3 seconds; for the second:
6.1 seconds. Up to 0.4 seconds variation in the results.

NG

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users

This email sent to email@hidden

  • Follow-Ups:
    • Re: Slow vs faster
      • From: Axel Luttgens <email@hidden>
  • Prev by Date: Re: Slow vs faster
  • Next by Date: Re: New to AppleScript,please help.
  • Previous by thread: Re: Slow vs faster
  • Next by thread: Re: Slow vs faster
  • Index(es):
    • Date
    • Thread