• 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: Why Slow Then Fast
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why Slow Then Fast


  • Subject: Re: Why Slow Then Fast
  • From: Nathan Greenstein <email@hidden>
  • Date: Tue, 7 Sep 2010 12:16:47 -0700

My only guess (and it's just a guess; I'm far from an expert) is that it's already stored what it needs in memory.
To get a better idea of what's going on, it would be helpful to see the code of the handler you call.

HTH,
--
Nathan Greenstein
email@hidden



On Tue, Sep 7, 2010 at 10:51, Luther Fuller <email@hidden> wrote:
I have a script that I run from time to time. It takes about 60 sec to complete.
If I immediately run it again, the script completes in 8 sec.
Why?

More info. Here's the script I'm running ...

on run
tell application "Finder" to set hostAppl to (container of container of container of (path to me)) as text
-- hostAppl contains this application in /applBundle/Contents/Resources/
try
launch application hostAppl
tell application hostAppl to handlerCalledByMe()
on error errText number errNr
activate me
"Show Labeled Error = " & errNr & return & errText
tell me to display dialog the result buttons {"OK"} default button 1
end try
end run -----------------------------

handlerCalledByMe is in the hostAppl because it uses other handlers in hostAppl.

So why can't it complete in 8 sec the first time it's called?


 _______________________________________________
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

 _______________________________________________
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

References: 
 >Why Slow Then Fast (From: Luther Fuller <email@hidden>)

  • Prev by Date: Why Slow Then Fast
  • Next by Date: Re: InDesign Server speed?
  • Previous by thread: Why Slow Then Fast
  • Next by thread: Re: Why Slow Then Fast
  • Index(es):
    • Date
    • Thread