On 2009 Dec 03, at 04:45, gMail.com wrote:

> 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?

Not me, but yes it is caching of some kind.  I've seen this behavior in other 
apps, though not to the 10x degree that you are seeing, and have always assumed 
that this is one of the tricks Apple is using to compensate for the fact that 
processor speeds are not increasing as fast as they were 10 years ago.  
Traversing the filesystem obviously involves much disk access and is therefore 
slow, so it is reasonable that your app would be more affected than others.  
I'd say it's normal, expected behavior and there's not much you can do about it.

_______________________________________________

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

Reply via email to