Re: Why Slow Then Fast
Re: Why Slow Then Fast
- Subject: Re: Why Slow Then Fast
- From: Shane Stanley <email@hidden>
- Date: Wed, 08 Sep 2010 08:35:10 +1000
- Thread-topic: Why Slow Then Fast
On 8/9/10 3:51 AM, "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?
That's hard to know without knowing what handlerCalledByMe() is doing. For
example, if it's reading a large file, the file could be cached. If it's
talking to System Events, it may need to launch the app the first time.
But if you're worried about speed, using Finder properties to parse a path
rather than something like text item delimiters seems a poor choice.
--
Shane Stanley <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