nmh-workers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Nmh-workers] Large MH directories


From: Ralph Corderoy
Subject: Re: [Nmh-workers] Large MH directories
Date: Sat, 08 Apr 2017 11:25:35 +0100

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]