At least, I think you ought to make a random hash the default. You're
suffering badly on the 'random name' case, which I don't think is all that
rare. I'll run that test again with some of your hashes and see what happens.
> If names are truly random ordered, then the only optimization that can
> help is compression so as to cause the working set to still fit into RAM.
You appear to be mixing up the idea of random characters in the names with
random processing order. IMHO, the exact characters in a file name should
not affect processing efficiency at all, and I went out of my way to make
that true with HTree.
On the other hand, the processing order of names does and will always matter
a great deal in terms of cache footprint.
I should have done random stat benchmarks too, since we'll really see the
effects of processing order there. I'll put that on my to-do list.
-- Daniel - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/