1 Return-Path: <nils@dieweltistgarnichtso.net>
\r
2 X-Original-To: notmuch@notmuchmail.org
\r
3 Delivered-To: notmuch@notmuchmail.org
\r
4 Received: from localhost (localhost [127.0.0.1])
\r
5 by olra.theworths.org (Postfix) with ESMTP id 0EA48431FAF
\r
6 for <notmuch@notmuchmail.org>; Fri, 11 Apr 2014 03:55:50 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=0.01 tagged_above=-999 required=5
\r
12 tests=[T_MIME_NO_TEXT=0.01] autolearn=disabled
\r
13 Received: from olra.theworths.org ([127.0.0.1])
\r
14 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
15 with ESMTP id 9qn-H5eQiaVB for <notmuch@notmuchmail.org>;
\r
16 Fri, 11 Apr 2014 03:55:41 -0700 (PDT)
\r
17 X-Greylist: delayed 1988 seconds by postgrey-1.32 at olra;
\r
18 Fri, 11 Apr 2014 03:55:41 PDT
\r
19 Received: from mail.tiggerswelt.net (mail.tiggerswelt.net [94.186.151.130])
\r
20 (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
\r
21 (No client certificate requested)
\r
22 by olra.theworths.org (Postfix) with ESMTPS id 7450D431FAE
\r
23 for <notmuch@notmuchmail.org>; Fri, 11 Apr 2014 03:55:41 -0700 (PDT)
\r
24 Received: from localhost (xdsl-78-35-206-77.netcologne.de [78.35.206.77])
\r
25 (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
\r
26 (No client certificate requested)
\r
27 by mail.tiggerswelt.net (Postfix) with ESMTP id D24A73D26
\r
28 for <notmuch@notmuchmail.org>; Fri, 11 Apr 2014 12:24:09 +0200 (CEST)
\r
29 From: Nils Dagsson Moskopp <nils@dieweltistgarnichtso.net>
\r
30 To: notmuch@notmuchmail.org
\r
31 Subject: notmuch-hello buffer slow doe to slow query
\r
32 User-Agent: Notmuch/0.17 (http://notmuchmail.org) Emacs/23.4.1
\r
34 Date: Fri, 11 Apr 2014 12:22:19 +0200
\r
35 Message-ID: <874n20go84.fsf@dieweltistgarnichtso.net>
\r
37 Content-Type: multipart/signed; boundary="=-=-=";
\r
38 micalg=pgp-sha256; protocol="application/pgp-signature"
\r
39 X-Mailman-Approved-At: Fri, 11 Apr 2014 04:06:51 -0700
\r
40 X-BeenThere: notmuch@notmuchmail.org
\r
41 X-Mailman-Version: 2.1.13
\r
43 List-Id: "Use and development of the notmuch mail system."
\r
44 <notmuch.notmuchmail.org>
\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
46 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
48 List-Post: <mailto:notmuch@notmuchmail.org>
\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
51 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
52 X-List-Received-Date: Fri, 11 Apr 2014 10:55:50 -0000
\r
55 Content-Transfer-Encoding: quoted-printable
\r
59 If notmuch-hello includes a saved search with a slow query, switching to
\r
60 a notmuch-hello buffer is very slow due to notmuch-mode updating counts
\r
61 for search results. mjw1009 suggested "(setq notmuch-hello-auto-refresh
\r
62 nil)", which stops the counting and works around the problem.
\r
64 Fundamentally, the problem is a slow query. On my laptop (Thinkpad T60),
\r
65 many things are pretty much instant, even though I have a HDD, no SSD:
\r
67 > ; time notmuch count 'tag:inbox and tag:list'
\r
69 > 0.02user 0.00system 0:00.03elapsed 72%CPU (0avgtext+0avgdata 3852maxresid=
\r
71 > 0inputs+0outputs (0major+1135minor)pagefaults 0swaps
\r
73 However, from-queries take their time:
\r
75 > ; time notmuch count 'not tag:replied and to:nils@dieweltistgarnichtso.ne=
\r
78 > 0.10user 0.15system 0:14.14elapsed 1%CPU (0avgtext+0avgdata 3472maxreside=
\r
80 > 157544inputs+0outputs (0major+1039minor)pagefaults 0swaps
\r
82 mjw1009 can reproduce if the from-query contains an "@" and thinks the
\r
83 problem may be "something deeper down in notmuch (actually probably in
\r
89 Nils Dagsson Moskopp // erlehmann
\r
90 <http://dieweltistgarnichtso.net>
\r
93 Content-Type: application/pgp-signature
\r
95 -----BEGIN PGP SIGNATURE-----
\r
98 iF4EAREIAAYFAlNHwlsACgkQZGjbY/Ag5QlLkQEA3zmzUVRUJD6g03fDa1JYb3HT
\r
99 RyqmHehNr3Sz1C6Et7MBANJsIFZ+MTXHVuCZnmH0SSrAOoqGlD6UOecruETHp404
\r
101 -----END PGP SIGNATURE-----
\r