Hi Thomas, > some of these directories will have lots of files. > > Is this a bad idea? I'm mainly concerned about speed: Other than like > pick and scan on the whole folder, will anything else get very slow?
Well, `scan .' will also read all entries in the folder's directory even though it knows cur is number 42. You could try creating two folders with one message and 100e3 messages, they can be empty files, and use `strace -c' or `strace -e getdents' to see how the same command differs due to the number of messages in the folder. (I have been idly wondering about having nmh only do some of these things when they're needed, either by not attempting the existing calls when they're not needed, or by shifting the "initialisation", e.g. reading everything about the current folder, to be done lazily only when they data is actually used.) -- Cheers, Ralph. https://plus.google.com/+RalphCorderoy _______________________________________________ Nmh-workers mailing list [email protected] https://lists.nongnu.org/mailman/listinfo/nmh-workers
