Re: Slow app with Fusion drive.
Re: Slow app with Fusion drive.
- Subject: Re: Slow app with Fusion drive.
- From: Axel Luttgens <email@hidden>
- Date: Wed, 13 Mar 2013 18:48:14 +0100
Le 12 mars 2013 à 02:20, Brian Christmas a écrit :
> Thanks Shane
>
> It looks like the offending code is anything to do with getting folders and folder contents off the disk.
>
> Just one of the problem areas in my code is below, with times in green.
>
> Any thoughts on how to fix it anyone?
>
> Regards
>
> Santa
>
> on setTheLabel()
> set tt to current date
> tell application "Finder"
> [...]
> end tell
> if runforoz then say "label, "& current date - tt as text
> end setTheLabel
Hello Brian,
Indeed, those 17 and 37 seconds durations are quite surprising...
What's the average count of items into those "RTF Documents", "Temporary Printing", "Unrecognized items for Manual printing", "UnZipped items for Manual Storage" folders?
You wrote that you noticed a performance degradation when moving from a late 2010 iMac to a new fusion drive iMac.
Did the OS version change at the same time?
And that of Xcode at the same time?
I know that Shane and you already have devised various ways to avoid the Finder and to make use of cocoa instead.
But I would like to elucidate the underlying causes of such a performance degradation.
The OS? Xcode? Fusion drive (as implied by the thread's subject)?
So, I created a folder named "mailmanagerdesktopfolder" on my desktop, with above sub-folders populated with a few items. And then ran this one in AppleScript Editor on a 10.8.2 box (without Fusion drive):
property mailmanagerdesktopfolder : (path to desktop as text) & "mailmanagerdesktopfolder"
property runforoz : false
property FlaggedSpoken : true
on setTheLabel()
[... your code, unchanged ...]
end setTheLabel
setTheLabel()
Beside the slownesses to be expected because of some coding choices, the excution times I got here appear quite normal.
Could you try the same?
Axel
_______________________________________________
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