unofficial mirror of notmuch@notmuchmail.org
 help / color / mirror / code / Atom feed
* Slowness (search opens every email file?)
@ 2011-07-11 19:07 Jason Woofenden
  2011-07-11 21:58 ` Patrick Totzke
  2011-07-11 22:13 ` Austin Clements
  0 siblings, 2 replies; 11+ messages in thread
From: Jason Woofenden @ 2011-07-11 19:07 UTC (permalink / raw)
  To: Notmuch Mail

Hi all,

I'm having a great time patching up the vim frontend, but I've got
an issue that is in the backend, and seems far above my head at
this point:

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.

I don't think the search command should be opening the files. So my
questions:

1) Why is it opening the e-mail files? What information is being
read?

2) Do you agree that it should instead get this information from
the database?

3) How hard would it be make this fast? What would it take?

4) Who wants to do it?


I'd like it to be able to spit out 1000 threads in under a second.
Preferably under 100ms.


Thank you,    -- Jason


P.S. I mean really slow... 

notmuch search tag:foo  took  0.5 seconds for 32 threads

notmuch search foo took 6.4 seconds for 130 threads

Everything's getting into my cache, so I can't easily get lots of
numbers. For a while I had a simple search (tag:foo and tag:bar)
which returned about 600 threads, and it would frequently take
seconds.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-07-13  5:03 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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

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).