Suppose we have one level of subdirs named with 2 hexadecimal digits, inside of those, another level named with 3 hex digits (or vice versa) and the files are being distributed rather uniformly using a hash function.
So it should look like this
/uploads/c2/f4c/image.jpg
or maybe like this
/uploads/c2f/4c/image.jpg
Mathematically, 256x4096 and 4096x256 will give me the same final number of folders for the distribution of my files. In terms of performance of the filesystem, is there a difference?
Thank you!
edit: the filesystem in question is ext4