On Thu, Dec 29, 2005 at 05:53:53AM +0100, Stanislaw Halik wrote: > readdir(3), too? why? isn't rename(2) enough? Note that I did not say it used opendir(3) -- it doesn't. I said it opens the directory. This is true. It's done by the kernel, so userland functions aren't in play. > > For mail folders with very large numbers of messages on anything > > resembling traditional Unix filesystems, mbox will win. Guaranteed. > > on my system (FreeBSD 6.0-p1), renaming 1000 files took less than a > second... IIRC, FreeBSD's default filesystem is a modified FFS which is optimized for the case of many small files. As I said, in such cases, you'll receive a performance boost. Reiserfs should also do well in this department. But 1000 messages isn't 50,000 messages. Try again with that number and see how well you do. You might be surprised, even on FreeBSD's optimized filesystem. -- Derek D. Martin http://www.pizzashack.org/ GPG Key ID: 0xDFBEAD02 -=-=-=-=- This message is posted from an invalid address. Replying to it will result in undeliverable mail. Sorry for the inconvenience. Thank the spammers.
Attachment:
pgpHISWqDnGAs.pgp
Description: PGP signature