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 98AE94196F4 for ; Wed, 16 Jun 2010 10:26:52 -0700 (PDT) X-Virus-Scanned: Debian amavisd-new at olra.theworths.org X-Spam-Flag: NO X-Spam-Score: 0.8 X-Spam-Level: X-Spam-Status: No, score=0.8 tagged_above=-999 required=5 tests=[BAYES_50=0.8] autolearn=ham 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 PyQ6zz8H8F2L for ; Wed, 16 Jun 2010 10:26:42 -0700 (PDT) Received: from max.feld.cvut.cz (max.feld.cvut.cz [147.32.192.36]) by olra.theworths.org (Postfix) with ESMTP id 4FEE2431FC1 for ; Wed, 16 Jun 2010 10:26:42 -0700 (PDT) Received: from localhost (unknown [192.168.200.4]) by max.feld.cvut.cz (Postfix) with ESMTP id 2032E19F365F for ; Wed, 16 Jun 2010 19:26:41 +0200 (CEST) X-Virus-Scanned: IMAP AMAVIS Received: from max.feld.cvut.cz ([192.168.200.1]) by localhost (styx.feld.cvut.cz [192.168.200.4]) (amavisd-new, port 10044) with ESMTP id D4cUx43a-Rdn for ; Wed, 16 Jun 2010 19:26:39 +0200 (CEST) Received: from imap.feld.cvut.cz (imap.feld.cvut.cz [147.32.192.34]) by max.feld.cvut.cz (Postfix) with ESMTP id DC12419F362F for ; Wed, 16 Jun 2010 19:26:39 +0200 (CEST) Received: from steelpick.2x.cz (ip-85-161-203-252.eurotel.cz [85.161.203.252]) (Authenticated sender: sojkam1) by imap.feld.cvut.cz (Postfix) with ESMTPSA id 82533FA004 for ; Wed, 16 Jun 2010 19:26:35 +0200 (CEST) Received: from wsh by steelpick.2x.cz with local (Exim 4.72) (envelope-from ) id 1OOvRW-0000TV-29 for notmuch@notmuchmail.org; Wed, 16 Jun 2010 18:26:22 +0200 From: Michal Sojka To: notmuch@notmuchmail.org Subject: Slow saved searches User-Agent: Notmuch/0.3.1-77-gd22f461 (http://notmuchmail.org) Emacs/23.2.1 (x86_64-pc-linux-gnu) Date: Wed, 16 Jun 2010 18:26:21 +0200 Message-ID: <87wrtz3pw2.fsf@steelpick.2x.cz> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Wed, 16 Jun 2010 17:26:52 -0000 Hi, I've just migrated from initial tagging of my emails by mailing list name to saved searches. I ended up with 45 saved searches and it seems that notmuch-hello needs significantly more time to display the hello screen than when I used tags. I guess that it is because notmuch count is called two times for every saved search whereas for tags it is called only once. The first call is done when checking for empty saved searches and the second when we want to display the count. I'd like to remove this inefficiency myself, but my elisp knowledge is too bad for doing this. Could somebody else attempt to do it? Thanks Michal