Re: Most Efficient Directory Structure? Hactar wrote:
> > So I'm trying to figure out how I set up the directory structure for
> > maximum expandability and maximum efficiency.
>
> What was that line about "a man cannot serve two masters"...
Heh. :-)
> You may have to change filesystems as time goes on. What's the expected
> size on a file? Does the access date matter?
Ranges from about 8k to 800k. Access date is unimportant.
> Might a "if not successful (readdir) then mkdir" be faster?
Definite possibility.
> > So where's the sweet spot in keeping the directory structure as simple
> > as possible while keeping the best speed on writes, reads, and seeks?
>
> You need to say what the expected mix of those are, before any decent
> recommendations can be offered.
Write-occasionally, read and seek often.
- Greg |