Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

That's sometimes true but it depends a lot on the filesystem used, and sometimes on the options used when building it. ReiserFS, ext4 and FAT 32 won't have the same performance profile.

I think breaking down large collections in subdirectories is mainly done in order to ensure that it'll work even with FS that don't deal well with very large directories and also because it makes inspecting the files manually a little more convenient given that many file explorers (and especially the GUI ones) can have trouble with large directories.



Yes, though I think there's some POSIX compatibility stuff that also makes big directories a hassle.


also ext4 (then 3 i think) used to look for dir entries linearly (it was a linked list of entries).




Consider applying for YC's Summer 2026 batch! Applications are open till May 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: