Gnus development mailing list
 help / color / mirror / Atom feed
From: Matt Armstrong <matt@lickey.com>
Subject: Re: Maildir backend
Date: Wed, 13 Mar 2002 10:33:25 -0700	[thread overview]
Message-ID: <87r8mo1ifu.fsf@squeaker.lickey.com> (raw)
In-Reply-To: <m3d6y8ph6s.fsf@multivac.cwru.edu> (prj@po.cwru.edu's message of "Wed, 13 Mar 2002 11:26:13 -0500")

prj@po.cwru.edu (Paul Jarc) writes:

> Jérôme Marant <jerome.marant@fr.thalesgroup.com> wrote:
>>   I'm trying to understand why it is slow on startup.
>
> I haven't profiled it, but I'm pretty sure it's because it read all
> the NOV information at startup.  It uses this information to build a
> fast mapping among filenames, article numbers, and Message-IDs,
> which speeds things up later when we want to find a message by
> Message-ID, for example.
>
> Currently article numbers are only stored in memory, so they change
> between Gnus sessions.  This messes with the cache, the agent, and
> 'seen marks, so I'm going to change it when I have some time.  As
> part of that revision, I think I can get rid of the slow startup.
> E.g., I might create a new subdirectory in .nnmaildir/ which
> contains files with names like this:
> 154:<20020313115128.A9018@fr.thalesgroup.com>:1016016979.15575.multivac.cwru.edu
> I.e., article-number:message-id:unique-part-of-filename-in-cur.
> Then when we're looking for an article, we can just scan this
> directory, looking for whichever identification field we happen to
> have.  Since all the information here is contained in the filename,
> the files can be empty, and can even be hard links to a single file
> to avoid consuming lots of inodes.

Have you considered placing NOV data in a single .overview file like
nnml?  What is the advantage to keeping nov data in separate files?
My guess is that this will be faster for the common case: when folks
are running on a traditional unix file system.  But it probably boils
down to a philosophical argument.  Neither nnml nor nnmailder are
probably the best tool for storing HUGE mail folders.

-- 
matt



  reply	other threads:[~2002-03-13 17:33 UTC|newest]

Thread overview: 18+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-03-06  9:31 Jérôme Marant
2002-03-06 16:40 ` Paul Jarc
2002-03-07  8:56   ` Jérôme Marant
2002-03-07 18:00     ` Paul Jarc
2002-03-07 18:00     ` Paul Jarc
2002-03-08 12:11       ` Jérôme Marant
2002-03-08 16:37         ` Paul Jarc
2002-03-12  9:41           ` Jérôme Marant
2002-03-12 14:30             ` Paul Jarc
2002-03-13 10:51               ` Jérôme Marant
2002-03-13 16:26                 ` Paul Jarc
2002-03-13 17:33                   ` Matt Armstrong [this message]
2002-03-13 18:03                     ` Paul Jarc
2002-03-08 16:37         ` Paul Jarc
2002-03-08 12:11       ` Jérôme Marant
2002-03-07  8:56   ` Jérôme Marant
2002-03-06 16:40 ` Paul Jarc
2002-03-06  9:31 Jérôme Marant

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r8mo1ifu.fsf@squeaker.lickey.com \
    --to=matt@lickey.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).