> From:  Brent Welch <welch@panasas.com>
> Date:  Wed, 28 Aug 2002 22:40:21 -0700
>
> Well, I've used the check-the-modify-time cache trick for files in
> many places (not just exmh) so some part of me certainly thinks it
> is effective.  However, it occurred to me that if we do checkpoint
> state, then aren't we modifying the sequences file for the current
> folder on every message read?  Perhaps we look at the sequences file
> more than once per message view?
As I'd written the code a few months ago, we were reading the sequences file
first to see what sequences were in it and then once per sequence.  This
happens anywhere that we look at sequences, most notably in Ftoc_ShowSequences.
That seemed to be an obvious lose performancewise, but I wanted my abstraction to
have a separate call for "what sequences are in this folder?" and "what
messages are in this sequence?".  One option would have been to add another
call to get the data off of disk, but I felt that the check-the-modify-time
technique would be less error-prone.
I think the biggest gains would be from augmenting Ftoc_ShowSequences to allow
a finer specification of what needs to be updated in the ftoc so that the
current code would only be run when we really do have to update all sequences
for all messages.  I described these thoughts in an email message yesterday.
And again, if it can wait a few weeks, I'm willing to do it.
Chris
--
Chris Garrigues                 http://www.DeepEddy.Com/~cwg/
virCIO                          http://www.virCIO.Com
716 Congress, Suite 200
Austin, TX  78701		+1 512 374 0500
World War III:  The Wrong-Doers Vs. the Evil-Doers.

from localhost (localhost [127.0.0.1])
	by phobos.labs.netnoteinc.com (Postfix) with ESMTP id 20DEC4416D
	for <jm@localhost>; Mon,  2 Sep 2002 07:38:28 -0400 (EDT)
from phobos [127.0.0.1]
	by localhost with IMAP (fetchmail-5.9.0)
	for jm@localhost (single-drop); Mon, 02 Sep 2002 12:38:28 +0100 (IST)
from listman.spamassassin.taint.org (listman.spamassassin.taint.org [66.187.233.211]) by
    dogma.slashnull.org (8.11.6/8.11.6) with ESMTP id g81K1WZ02392 for
    <jm-exmh@jmason.org>; Sun, 1 Sep 2002 21:01:35 +0100
from listman.spamassassin.taint.org (localhost.localdomain [127.0.0.1]) by
    listman.redhat.com (Postfix) with ESMTP id 3607E3FCDB; Sun,  1 Sep 2002
    16:01:34 -0400 (EDT)
from int-mx1.corp.spamassassin.taint.org (int-mx1.corp.spamassassin.taint.org
    [172.16.52.254]) by listman.redhat.com (Postfix) with ESMTP id 131FF3EA2C
    for <exmh-users@listman.redhat.com>; Sun,  1 Sep 2002 15:56:56 -0400 (EDT)
(from mail@localhost) by int-mx1.corp.spamassassin.taint.org (8.11.6/8.11.6)
    id g81JuqY32303 for exmh-users@listman.redhat.com; Sun, 1 Sep 2002
    15:56:52 -0400
from mx1.spamassassin.taint.org (mx1.spamassassin.taint.org [172.16.48.31]) by
    int-mx1.corp.redhat.com (8.11.6/8.11.6) with SMTP id g81JupY32299 for
    <exmh-users@redhat.com>; Sun, 1 Sep 2002 15:56:51 -0400
from orion.dwf.com (bgp01360964bgs.sandia01.nm.comcast.net
    [68.35.68.128]) by mx1.redhat.com (8.11.6/8.11.6) with SMTP id
    g81JfLl20760 for <exmh-users@redhat.com>; Sun, 1 Sep 2002 15:41:21 -0400
from orion.dwf.com (localhost.dwf.com [127.0.0.1]) by
    orion.dwf.com (8.12.1/8.12.1) with ESMTP id g81Ju7SO002623; Sun,
    1 Sep 2002 13:56:07 -0600
from orion.dwf.com (reg@localhost) by orion.dwf.com
    (8.12.1/8.12.1/Submit) with ESMTP id g81Ju6TE002619; Sun, 1 Sep 2002
    13:56:06 -0600
Re: ARRRGHHH Had GPG working, now it doesnt.
Message from Ingo Frommholz <ingo@frommholz.org> of
    "Sun, 01 Sep 2002 16:14:11 +0200."
    <200209011414.g81EEBP05889@eva.local>
From exmh-users-admin@redhat.com  Mon Sep  2 13:12:40 2002