Re: Super slow 'do shell script' command OS X 10.11 vs 10.8
Re: Super slow 'do shell script' command OS X 10.11 vs 10.8
- Subject: Re: Super slow 'do shell script' command OS X 10.11 vs 10.8
- From: Yvan KOENIG <email@hidden>
- Date: Wed, 22 Feb 2017 16:34:49 +0100
Le 22 févr. 2017 à 15:52, Jim Skibbie < email@hidden> a écrit :
Hey Shane-
For more background, I have a fairly complex script that on OS X 10.8 ran in about 50 seconds (outside of a debugger). The same exact script on OS X 10.11 runs in about 4 minutes 30 seconds (outside of a debugger). Doing side-by-side analysis of the Script
Debugger event log, I see that anytime a ‘do shell script’ command is run, the durantion time is 2x-5x longer than the 10.8 machine. Cumulatively, this adds up during the running of the script to make it much slower on 10.11. I changed some things around to
remove a loop that contained a ‘do shell script’ and the performance increased substantially (from 4 minutes 30 down to about 2 minutes). Still slower than on OS X 10.8, but for me, it indicates that the ‘do shell script’ appears to run significantly slower.
Shane Stanley wrote:
For a variety of reasons, you shouldn't pay much attention to such timings made in any script editor -- for one thing, the monitoring of events so they can be logged can add considerable overhead. This particularly affects 'do shell script'.
Save your script as an applet or run it from a script menu -- you will see a very different result. On my Mac, the time drops to about 1-2 seconds.
What are these commands? Maybe ASObjC may do the job even faster than what you got under 10.8.
Yvan KOENIG running Sierra 10.12.3 in French (VALLAURIS, France) mercredi 22 février 2017 16:34:45
|
_______________________________________________
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