Why are compiled scripts slower than from Script Editor?
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.