3 ms·
10000 is not many. It's not even a power of 2 so there is no technical reason for that number. The fact that Nikon (according to the article) is able to provide
by gsich 3y ago
10000 is not many. It's not even a power of 2 so there is no technical reason for that number. The fact that Nikon (according to the article) is able to provide a fixed firmware is proof enough.
- mikewarot 3y agoIf you put more than 10,000 files in a single folder on a host system, you may have trouble, depending on the file system. Here's a good example of why from [1] This isn't really a very big deal with newer filesystems such as XFS and ext4, but on older or misconfigured filesystems it can be a serious problem. With older Linux filesystems such as ext3, a directory is just an unordered list of files. That it is unordered is important, because it means that the only way for the system to find a file in a directory is to search it from the beginning to the end. If a directory contains 3,000 files, it will take an average of 1,500 comparisons to find a random file in the directory. But if the directory contains 300,000 files, it will take an average of 150,000 comparisons to find a random file in that directory. In either case, if the directory entry is not already cached in RAM, it must be loaded from disk, which would add a significant amount of time to the file access, proportionate to the size of the directory. Obviously a small dentry can be loaded faster than a large one. Thus, it is much faster when you use a more hierarchical directory structure to separate large numbers of files into unique directories. [1] https://serverfault.com/questions/736872/why-there-shouldnt-be-too-many-files-in-one-directory-that-serves-just-static-w https://serverfault.com/questions/736872/why-there-shouldnt-...
- gsich 3y agoSo not a problem. See XFS and ext4 as you wrote. I don't care about legacy filesystems. Neither should Nikon. Besides, even if Nikon stores them in different folders, they could keep the numbering. Not reset it to 0. Best of all worlds. Also, this issue could also arise even with 2 pictures you want to store in the same folder. (Although renaming is easier ofc then)