Reboot? Slow First Run
Reboot? Slow First Run
- Subject: Reboot? Slow First Run
- From: "gMail.com" <email@hidden>
- Date: Thu, 03 Dec 2009 13:45:00 +0100
- Thread-topic: Reboot? Slow First Run
I add some important info:
I have now duplicated the folder containing the 10,000 files and even if I
don't reboot, the first scan over this new folder takes 13 seconds too. So,
I guess the OS caches some info about the files I have already read. Is
anyone who can explain that better? Can I avoid this long time?
--------
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.
Regards
--
Leonardo
_______________________________________________
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