Re: Why Slow Then Fast
Re: Why Slow Then Fast
- Subject: Re: Why Slow Then Fast
- From: Luther Fuller <email@hidden>
- Date: Tue, 01 Mar 2011 17:50:33 -0600
On Mar 1, 2011, at 5:10 PM, Christopher Stone wrote:
> Are you still writing to disk on every iteration?
> What happens if you write to a variable and only write to disk on completion of the report?
formatAndWrite writes one line of the report each time it's called.
I haven't tried writing the report to a variable, then once to disk.
Perhaps I'll try soon.
On Mar 1, 2011, at 4:51 PM, Shane Stanley wrote:
>> 'formatAndWrite' calls the handler 'getVersion' which uses System Events
>
> And System Events isn't running all the time; it quits automatically if not
> used for a definable length of time. The initial delay sounds like waiting
> for System Events to launch.
Another handler, getInstallHistory, which uses System Events to read /Library/Receipts/InstallHistory.plist, is called just before the repeat ... end repeat loop, so this does not seem to be the problem. In my experience, reading/writing a .plist file with System Events seems to be very fast.
_______________________________________________
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