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 (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com