Extreme performance drop if saved as app
Extreme performance drop if saved as app
- Subject: Extreme performance drop if saved as app
- From: Håvard Graudo <email@hidden>
- Date: Fri, 8 Apr 2005 11:10:31 +0200
I have a script that parse XML-files and put the
contents into 5 related filemaker databases.
Neither very complex nor very huge stuff. It is
designed to be drag&drop, so I save it as an
application.
I use Script Debugger and when I drop files
directly on the open script window to trigger it,
performance is nice and fast.
However when I save it as an application it
starts out fast, but performance crawls to a near
standstill.
Comparable results are: 227 seconds vs. 5503
seconds parsing the same files. (not a typo: that
is 4 minutes from Script Debugger vs. one and a
half hour (!) when running as a script
application)
What is happening and where should I start digging to solve this?
Thanks for any suggestions,
Håvard
-----
The numbers:
I timed the difference, also noting the CPU load as the script was running:
Running from Script Debugger:
Time to complete: 227 sek
CPU load Script Debygger: around 40 %
CPU load Filemaker: around 25 %
Running as a saved application:
Time to complete: 5503 sek <<<---- !!!!
CPU load Script App: starting at 4% droping to 0.5%
CPU load Filemaker: starting at 15% droping to 2%
Stuff involved:
OS 10.3.8 (classic not running)
Filemaker 6.04
Script Debugger 3.08
XML Tools 2.1
XML lib 2.0
I first wrote it using XML Tools from late night
software. I suspected it to be the culprit so I
rewrote the script to use the much faster XML lib
from SatImage. While this does speed things up,
both versions show the same performance drop when
saved as an application.
_______________________________________________
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