--- /dev/null
+Return-Path: <alpine.art.de@gmail.com>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+ by olra.theworths.org (Postfix) with ESMTP id 04B61431FCB\r
+ for <notmuch@notmuchmail.org>; Thu, 22 Jan 2015 12:17:03 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 1.639\r
+X-Spam-Level: *\r
+X-Spam-Status: No, score=1.639 tagged_above=-999 required=5\r
+ tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ DNS_FROM_AHBL_RHSBL=2.438, FREEMAIL_FROM=0.001,\r
+ RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+ by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+ with ESMTP id NUVSHExwZDg5 for <notmuch@notmuchmail.org>;\r
+ Thu, 22 Jan 2015 12:16:59 -0800 (PST)\r
+Received: from mail-we0-f179.google.com (mail-we0-f179.google.com\r
+ [74.125.82.179]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by olra.theworths.org (Postfix) with ESMTPS id 54822431FC9\r
+ for <notmuch@notmuchmail.org>; Thu, 22 Jan 2015 12:16:59 -0800 (PST)\r
+Received: by mail-we0-f179.google.com with SMTP id q59so3888954wes.10\r
+ for <notmuch@notmuchmail.org>; Thu, 22 Jan 2015 12:16:58 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=from:to:cc:subject:date:message-id;\r
+ bh=JMOj2lP4obMBa233D8s+aD6MiS2pkJYpQD75NFZZHDg=;\r
+ b=DWNHLPuNeQzVoZgz+GVwDr+5Yg4PUewofbKwL49E8XrERBbyyGYxI2puVSHjIYSNZc\r
+ 3rGmJcmHgQbfUF2iW34kf8CkVigc7At3kFXoILVr1XNsWOrIoZgPCQeSjy1PLL+hBPYI\r
+ +hO6eC1ppzN19AJ0Iy8CP37D+A5rQEhAkf1xGHtqkKnqr41Ne5ny0b8PyOAEM7pt/TcV\r
+ fwpa2bA2vWsAf04cW7WcrgOEK0HPrteJHdnNmzAg7F8mTuWcuDbsyYKBrRcnoKrJsIWC\r
+ GaswhAgpIvfrXkqAao45U0mFgCZamZPy6Y+oGjrvYhE9xJoD7zlFGoehZUEPlFWX9y5o\r
+ C1vA==\r
+X-Received: by 10.194.237.202 with SMTP id ve10mr6904685wjc.36.1421957818073; \r
+ Thu, 22 Jan 2015 12:16:58 -0800 (PST)\r
+Received: from localhost (p579BA329.dip0.t-ipconnect.de. [87.155.163.41])\r
+ by mx.google.com with ESMTPSA id fo15sm124328wic.19.2015.01.22.12.16.56\r
+ (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);\r
+ Thu, 22 Jan 2015 12:16:57 -0800 (PST)\r
+From: Franz Fellner <alpine.art.de@gmail.com>\r
+To: notmuch@notmuchmail.org\r
+Subject: [PATCH] VIM: Improve performance of folders_render\r
+Date: Thu, 22 Jan 2015 21:16:47 +0100\r
+Message-Id: <1421957807-26273-1-git-send-email-alpine.art.de@gmail.com>\r
+X-Mailer: git-send-email 2.2.1\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+ <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+ <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Thu, 22 Jan 2015 20:17:03 -0000\r
+\r
+Simply use query.count_[messages,threads] instead of actually running\r
+the query and using the count attribute of the result set.\r
+---\r
+ vim/notmuch.vim | 2 +-\r
+ 1 file changed, 1 insertion(+), 1 deletion(-)\r
+\r
+diff --git a/vim/notmuch.vim b/vim/notmuch.vim\r
+index cb6695a..ad8b7c8 100644\r
+--- a/vim/notmuch.vim\r
++++ b/vim/notmuch.vim\r
+@@ -644,7 +644,7 @@ ruby << EOF\r
+ q.add_tag_exclude(t)\r
+ }\r
+ $searches << search\r
+- count = count_threads ? q.search_threads.count : q.search_messages.count\r
++ count = count_threads ? q.count_threads : q.count_messages\r
+ b << "%9d %-20s (%s)" % [count, name, search]\r
+ end\r
+ end\r
+-- \r
+2.2.1\r
+\r