unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
From: Jason Woofenden <jason@jasonwoof.com>
To: Notmuch Mail <notmuch@notmuchmail.org>
Subject: Re: Slowness (search opens every email file?)
Date: Tue, 12 Jul 2011 16:24:59 -0400	[thread overview]
Message-ID: <20110712202459.GB15019@compy.jasonwoof.org> (raw)
In-Reply-To: <CAH-f9WtBHJ8bL6eWoSNrTs=jkrOYYCuWEVVPDUt_iCw0dKcZbw@mail.gmail.com>

On 2011-07-11 06:13PM, Austin Clements wrote:
> On Mon, Jul 11, 2011 at 3:07 PM, Jason Woofenden <jason@jasonwoof.com> wrote:
> > notmuch search tag:foo is slow!
> >
> > (when my e-mail files are not already in the disk cache)
> >
> > I saw on my activity monitor applet that it was using mostly i/o,
> > and started to wonder if it was opening every e-mail. I little work
> > with strace and searching revealed that this command was opening
> > many many e-mail files from my maildir(s). I spent a little while
> > digging around in the notmuch source, and didn't see where it was
> > opening the email files.
> 
> It is opening every file to get a few headers to display in the search
> output.  Istvan Marko sent an experimental patch to store these
> headers in the database a while ago, though as far as I know there
> hasn't been any progress cleaning it up for inclusion:
> id:"m3sjsv2kw2.fsf@zsu.kismala.com" .

Cool. I suspected it was reading for header files.

I googled the id and found this patchwork link:

http://patchwork.notmuchmail.org/patch/947/

(I didn't see any way to ask mailman for a message id.)

Does someone want to work at this soon or should I try my hand at
it?


Thanks,     - Jason

  reply	other threads:[~2011-07-12 20:25 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-07-11 19:07 Slowness (search opens every email file?) Jason Woofenden
2011-07-11 21:58 ` Patrick Totzke
2011-07-12 20:10   ` Jason Woofenden
2011-07-11 22:13 ` Austin Clements
2011-07-12 20:24   ` Jason Woofenden [this message]
2011-07-12 20:35     ` Get mboxes from mailman [Was: Slowness (search opens every email file?)] Uwe Kleine-König
2011-07-13  0:50     ` Slowness (search opens every email file?) Austin Clements
2011-07-13  1:55       ` Istvan Marko
2011-07-13  2:22         ` Austin Clements
2011-07-13  3:07           ` Istvan Marko
2011-07-13  5:03             ` Austin Clements

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

  List information: https://notmuchmail.org/

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

  git send-email \
    --in-reply-to=20110712202459.GB15019@compy.jasonwoof.org \
    --to=jason@jasonwoof.com \
    --cc=notmuch@notmuchmail.org \
    /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.
Code repositories for project(s) associated with this public inbox

	https://yhetil.org/notmuch.git/

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 read-only IMAP folder(s) and NNTP newsgroup(s).