• 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
Why are compiled scripts slower than from Script Editor?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Why are compiled scripts slower than from Script Editor?


  • Subject: Why are compiled scripts slower than from Script Editor?
  • From: "Patrick S. Page-McCaw" <email@hidden>
  • Date: Fri, 31 Jan 2003 16:33:35 -0800

Why is it that a script run from either Script Editor or SMILE runs
more quickly than the same script saved as an application?

Here is the script:

set myLog to {}
set end of myLog to GetMilliSec
repeat 100 times
delayIt(GetMilliSec, 500)
set end of myLog to GetMilliSec
end repeat

When run from SMILE or ScriptEditor the mean time between repeats is
50111.6 millisec (pretty good for a scripting language, in my full
script there is a lot going on in the repeat and the reliability of
the timings are no worse). When run as a stand-alone the mean time is
554153 millisec. 54 millisec slower and 35-times less reliable (in
repeat duration)!

I haven't tried this OSX.

I'm sending triggers to a serial device and want the timing to be as
precise and reliable as possible. I had hoped I could do this from a
compiled script , but I guess not.

Any thoughts welcome...

Patrick
_______________________________________________
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: Why are compiled scripts slower than from Script Editor?
      • From: Doug McNutt <email@hidden>
  • Prev by Date: Re: activating Speakable Items with AppleScript?
  • Next by Date: referencing a variable from another?
  • Previous by thread: Trouble building app in Applescript Studio.
  • Next by thread: Re: Why are compiled scripts slower than from Script Editor?
  • Index(es):
    • Date
    • Thread