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

Re: RE: Why are compiled scripts slower than from Script Editor?


  • Subject: Re: RE: Why are compiled scripts slower than from Script Editor?
  • From: Martin Crisp <email@hidden>
  • Date: Thu, 20 Mar 2003 8:29:12 +1100
  • Organization: Tesseract Computing

On Wed, 19 Mar 2003 15:38:09 +1100, Sprague, Graham wrote
(in message
<email@hidden):

> I think I may have some important data here.
>
> The Script Editor uses about 20-27% of CPU when running my
> script.
>
> The compiled application of that same script uses a maximum of
> about 3-4% when running.

That seems very low to me...

trimmed output from: top -uws5 5

PID COMMAND %CPU TIME
3196 GATCP3.app 48.2% 9:02.64
2189 Window Man 15.7% 13:10:01
3197 Hogwasher 15.7% 2:05.82


The first entry is a largish applescript which only speaks to
itself and System Events, and spends its time entirely in the
background. How much work is your script 'farming out' to other
applications? What is the overal load on your CPU? [top shows I'm
sitting on 5-7% idle on a G4 @400MHz; if I have no active user
processes other than GATCP3.app and terminal, then GATCP3.app
reaches about 70% of CPU]

>> ---------- From: Sprague, Graham Sent: Wednesday, March 19,
>> 2003 3:07 PM
>> To: Sprague, Graham; AppleScript Users;
>> 'email@hidden'; 'Andrew Oliver'
>> Subject: RE: Why are compiled scripts slower than from Script
>> Editor?
>>
>> Here's my setup...
>>
>> Mac OS X 10.2.4
>> Quark 4.11 (Classic)
>> FileMaker 6 (Native)
>> Script Editor 1.9
>> Dual 1.25Ghz G4 w/768MB RAM

[snip previous]

Have Fun
Martin
--
I have absolutely no reason to complain about "success" with my
work; [...] And yet, from time to time a boundless sense of
inferiority plagues me, a desperate feeling of general failure; how
does a person acquire such bits of lunacy?
- MC Escher

Almost always SMASHed
_______________________________________________
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.

  • Prev by Date: Re: the Holy Grail of AppleScript lists
  • Next by Date: Re: Display Status Window
  • Previous by thread: Re: "tell" is opening *classic* QuickTime Player, not OSX version!
  • Next by thread: Newbie call method help needed please
  • Index(es):
    • Date
    • Thread