On 3/2/14 5:22 PM, Trygve Inda wrote:
I did some testing about optimal number of files per folder for our package
format and 3750 files per directory are way too many. The file system is
much
more efficient if you spread those files into sub-folders. We got the
best
performance with a 3-level sparse folder index (files are stored on
the third
folder level).



That's interesting. If I cut the files to 1875 per folder, the save takes
half as long. The time cost seems very linear.

What did you find to be a good max per folder?

Can't say, probably less than 100 per folder. It's easy to find out, though, just create different layouts and see which one is getting saved most quickly. I can remember that we experimented extensively with the number of index levels (each level having 16 potential slots) and 3 turned out to work best for us for reading and writing.

Regards
Markus
--
__________________________________________
Markus Spoettl
_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to