From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/43864 Path: main.gmane.org!not-for-mail From: prj@po.cwru.edu (Paul Jarc) Newsgroups: gmane.emacs.gnus.general Subject: Re: Maildir backend Date: Wed, 13 Mar 2002 11:26:13 -0500 Organization: What did you have in mind? A short, blunt, human pyramid? Sender: owner-ding@hpc.uh.edu Message-ID: References: <20020306103130.A4152@fr.thalesgroup.com> <20020307095642.A6244@fr.thalesgroup.com> <20020308131140.A10053@fr.thalesgroup.com> <20020312104127.A22635@fr.thalesgroup.com> <20020313115128.A9018@fr.thalesgroup.com> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1016036848 29896 127.0.0.1 (13 Mar 2002 16:27:28 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Wed, 13 Mar 2002 16:27:28 +0000 (UTC) Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.33 #1 (Debian)) id 16lBb6-0007lz-00 for ; Wed, 13 Mar 2002 17:27:28 +0100 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 16lBaD-0001BG-00; Wed, 13 Mar 2002 10:26:33 -0600 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Wed, 13 Mar 2002 10:26:37 -0600 (CST) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id KAA12174 for ; Wed, 13 Mar 2002 10:26:24 -0600 (CST) Original-Received: (qmail 10237 invoked by alias); 13 Mar 2002 16:26:14 -0000 Original-Received: (qmail 10232 invoked from network); 13 Mar 2002 16:26:14 -0000 Original-Received: from multivac.student.cwru.edu (HELO multivac.cwru.edu) (qmailr@129.22.96.25) by gnus.org with SMTP; 13 Mar 2002 16:26:14 -0000 Original-Received: (qmail 16382 invoked by uid 500); 13 Mar 2002 16:26:35 -0000 Original-To: ding@gnus.org 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") Mail-Copies-To: nobody Mail-Followup-To: ding@gnus.org Original-Lines: 37 User-Agent: Gnus/5.090006 (Oort Gnus v0.06) Emacs/20.7 (i386-redhat-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:43864 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:43864 J=E9r=F4me Marant 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.cwr= u.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 ? > 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