Return-Path: X-Original-To: notmuch@notmuchmail.org Delivered-To: notmuch@notmuchmail.org Received: from localhost (localhost [127.0.0.1]) by olra.theworths.org (Postfix) with ESMTP id 0EA48431FAF for ; Fri, 11 Apr 2014 03:55:50 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.01 X-Spam-Level: X-Spam-Status: No, score=0.01 tagged_above=-999 required=5 tests=[T_MIME_NO_TEXT=0.01] autolearn=disabled Received: from olra.theworths.org ([127.0.0.1]) by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 9qn-H5eQiaVB for ; Fri, 11 Apr 2014 03:55:41 -0700 (PDT) X-Greylist: delayed 1988 seconds by postgrey-1.32 at olra; Fri, 11 Apr 2014 03:55:41 PDT Received: from mail.tiggerswelt.net (mail.tiggerswelt.net [94.186.151.130]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by olra.theworths.org (Postfix) with ESMTPS id 7450D431FAE for ; Fri, 11 Apr 2014 03:55:41 -0700 (PDT) Received: from localhost (xdsl-78-35-206-77.netcologne.de [78.35.206.77]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (No client certificate requested) by mail.tiggerswelt.net (Postfix) with ESMTP id D24A73D26 for ; Fri, 11 Apr 2014 12:24:09 +0200 (CEST) From: Nils Dagsson Moskopp To: notmuch@notmuchmail.org Subject: notmuch-hello buffer slow doe to slow query User-Agent: Notmuch/0.17 (http://notmuchmail.org) Emacs/23.4.1 (i486-pc-linux-gnu) Date: Fri, 11 Apr 2014 12:22:19 +0200 Message-ID: <874n20go84.fsf@dieweltistgarnichtso.net> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" X-Mailman-Approved-At: Fri, 11 Apr 2014 04:06:51 -0700 X-BeenThere: notmuch@notmuchmail.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: "Use and development of the notmuch mail system." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 11 Apr 2014 10:55:50 -0000 --=-=-= Content-Transfer-Encoding: quoted-printable Hello, If notmuch-hello includes a saved search with a slow query, switching to a notmuch-hello buffer is very slow due to notmuch-mode updating counts for search results. mjw1009 suggested "(setq notmuch-hello-auto-refresh nil)", which stops the counting and works around the problem. Fundamentally, the problem is a slow query. On my laptop (Thinkpad T60), many things are pretty much instant, even though I have a HDD, no SSD: > ; time notmuch count 'tag:inbox and tag:list' > 25452 > 0.02user 0.00system 0:00.03elapsed 72%CPU (0avgtext+0avgdata 3852maxresid= ent)k > 0inputs+0outputs (0major+1135minor)pagefaults 0swaps However, from-queries take their time: > ; time notmuch count 'not tag:replied and to:nils@dieweltistgarnichtso.ne= t' > 5328 > 0.10user 0.15system 0:14.14elapsed 1%CPU (0avgtext+0avgdata 3472maxreside= nt)k > 157544inputs+0outputs (0major+1039minor)pagefaults 0swaps mjw1009 can reproduce if the from-query contains an "@" and thinks the problem may be "something deeper down in notmuch (actually probably in xapian)". Greetings, =2D-=20 Nils Dagsson Moskopp // erlehmann --=-=-= Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iF4EAREIAAYFAlNHwlsACgkQZGjbY/Ag5QlLkQEA3zmzUVRUJD6g03fDa1JYb3HT RyqmHehNr3Sz1C6Et7MBANJsIFZ+MTXHVuCZnmH0SSrAOoqGlD6UOecruETHp404 =Ot1v -----END PGP SIGNATURE----- --=-=-=--