Performance of flat directory structures in iOS -


on ios filesystem, there way optimize file access performance using tiered directory structure vs. flat directory structure?

specifically, app has objects each contain number of images , data files. user create thousands of these objects , need optimize access 1 image ~100 arbitrary objects @ time.

in situation, how should organize files on filesystem? tiered directory structure faster flat one? , if so, how should structure tiered system (i.e. how many tiers, , how many subdirectories / files per tier)?

thanks!

well first of might try flat structure see if slow or not. perhaps apple has put in code optimize how files found , don't need worry this. can build out whole app , test how loads , see if meets requirements.

if need speed suggest trying make sort of structure based on name of file. have folder has of items beginning letter 'a' or 'b' , on , forth. split 26 folders should decrease amount of items in each. depending on how name files might want different scheme each of folders had similar amount of items in it


Comments

Popular posts from this blog

c# - Send Image in Json : 400 Bad request -

jquery - Fancybox - apply a function to several elements -

An easy way to program an Android keyboard layout app -