Re: Reboot? Slow First Run
Re: Reboot? Slow First Run
- Subject: Re: Reboot? Slow First Run
- From: Mike Abdullah <email@hidden>
- Date: Thu, 3 Dec 2009 12:33:35 +0000
On 3 Dec 2009, at 11:47, gMail.com wrote:
> Hi,
> my app executes a given task in 1.2 seconds, all the time. I can quit the
> application, relaunch it, run the same task several times and it always
> takes 1.2 seconds.
> But if I reboot the machine, I launch the application and run the same task
> for the first time, it takes 13 seconds! This problem occurs at any reboot.
> Then if I run the task again it always takes 1.2 seconds.
>
> What do I miss?
> The task simply calls contentsOfDirectoryAtPath then reads all the 10,000
> files (<=2 kb each) and put the contents into an array.
> I can show my code, if necessary.
Have you done any performance profiling yet? Instruments is your friend.
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden