3 ms·
> Is the total number of hierarchies between the top level and the bottom level an easily measurable thing? Sure. Just check all the files on your disk. > Doe
by viraptor 10y ago
> Is the total number of hierarchies between the top level and the bottom level an easily measurable thing?
Sure. Just check all the files on your disk.
> Does this number have significant impact on efficiency or on some other parameter important to the computers function?
Not once the file is accessed and all the relevant structures are cached. Actually on some filesystems it's beneficial to split directories with lots of files (think millions) into deeper hierarchies. You can sometimes see this bubbling up to the visible layer on some file hosting sites. You get a url that looks like example.com/file/so/me/somehash (first characters of the hash are used for the hierarchy split)
- jf 10y agoHere is how I'm trying to measure this on my system: (for d in `find / -type d | sed 's/[^\/]//g'`; do echo $d | wc -c; done) | sort -n Edit: It looks like the deepest directory on my (Mac OS X) system is 27 directories deep.
- ReedJessen 10y agoSo cool. Thanks.