Gnus development mailing list
 help / color / mirror / Atom feed
From: prj@po.cwru.edu (Paul Jarc)
Subject: Re: Maildir backend
Date: Wed, 13 Mar 2002 11:26:13 -0500	[thread overview]
Message-ID: <m3d6y8ph6s.fsf@multivac.cwru.edu> (raw)
In-Reply-To: <20020313115128.A9018@fr.thalesgroup.com> =?iso-8859-1?q?(J=E9r=F4me?= Marant's message of "Wed, 13 Mar 2002 11:51:28 +0100")

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.

>   Could you please explain how nnmaildir works, mainly the content of
>   .nnmaildir/marks? There is also a markfile file that seems to
>   be always empty. What is it for?

Have you read <URL:http://multivac.cwru.edu./nnmaildir/using/#marks>?

> NOV can be disable if nov-is-evil is non nil right?

Not for nnmaildir.  Supporting such an option means more code and more
work.  I think it's better to spend that effort on making the NOV code
work correctly, so no one cares about turning it off.


paul



  reply	other threads:[~2002-03-13 16:26 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-08 12:11       ` Jérôme Marant
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 [this message]
2002-03-13 17:33                   ` Matt Armstrong
2002-03-13 18:03                     ` Paul Jarc
2002-03-08 16:37         ` Paul Jarc
2002-03-07 18:00     ` Paul Jarc
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=m3d6y8ph6s.fsf@multivac.cwru.edu \
    --to=prj@po.cwru.edu \
    /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).