--- /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 2A3DC431FD4\r
+ for <notmuch@notmuchmail.org>; Tue, 16 Dec 2014 03:57:24 -0800 (PST)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.799\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.799 tagged_above=-999 required=5\r
+ tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,\r
+ FREEMAIL_FROM=0.001, 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 hPK0psu65S0G for <notmuch@notmuchmail.org>;\r
+ Tue, 16 Dec 2014 03:57:21 -0800 (PST)\r
+Received: from mail-wg0-f46.google.com (mail-wg0-f46.google.com\r
+ [74.125.82.46]) (using TLSv1 with cipher RC4-SHA (128/128 bits)) (No client\r
+ certificate requested) by olra.theworths.org (Postfix) with ESMTPS id\r
+ BA6F2431FC4 for <notmuch@notmuchmail.org>; Tue, 16 Dec 2014 03:57:20 -0800\r
+ (PST)\r
+Received: by mail-wg0-f46.google.com with SMTP id x13so17344846wgg.33\r
+ for <notmuch@notmuchmail.org>; Tue, 16 Dec 2014 03:57:19 -0800 (PST)\r
+DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;\r
+ h=date:from:to:cc:message-id:in-reply-to:references:subject\r
+ :mime-version:content-type:content-transfer-encoding:attach;\r
+ bh=XmnLS2HYl68Nfzgp166reBocfrF9AQjImdq0MN2plJQ=;\r
+ b=YZYk5xWqN81XCjWpowC6MWkDSoWFnhl5vE5ZEnD6T3Orvh4oc93N02ajCZcr8jIE0v\r
+ 4V5AvDRv6ICQiy8RgsMFooIYyUEuw0BbW/IlxJNSkQKXfbxhaL8znVClxo00piik3zsv\r
+ y6fDNa8P2RwxnDTNACItJ9NKIz3+UWKEQ9SSZah7F9a4Y04eCJ2HIT28qOtq03BAsc4W\r
+ MfZvmVzBworX5IZXRGXtRzgmZe08yPyUUQTRlZFOBAhm/C73iXlJXETSHH6RBQqB8rEh\r
+ gWl5IyPI9OIDXw3m/IMrZrDa2FdcXh5segOlaL3GVHBBy8hCw8fZgSnezaV1pGoZxEey\r
+ wVDA==\r
+X-Received: by 10.180.219.74 with SMTP id pm10mr291414wic.57.1418731039623;\r
+ Tue, 16 Dec 2014 03:57:19 -0800 (PST)\r
+Received: from localhost (p4FFB8938.dip0.t-ipconnect.de. [79.251.137.56])\r
+ by mx.google.com with ESMTPSA id u18sm808825wjq.42.2014.12.16.03.57.17\r
+ (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+ Tue, 16 Dec 2014 03:57:18 -0800 (PST)\r
+Date: Tue, 16 Dec 2014 12:57:41 +0100\r
+From: Franz Fellner <alpine.art.de@gmail.com>\r
+To: David Bremner <david@tethera.net>\r
+Message-ID: <54901e35e7138_14aae1d30460@TP_L520.notmuch>\r
+In-Reply-To: <87egt4naxr.fsf@maritornes.cs.unb.ca>\r
+References: <1412181686-11257-1-git-send-email-imain@stemwinder.org>\r
+ <87egt4naxr.fsf@maritornes.cs.unb.ca>\r
+Subject: Re: [PATCH] VIM: Automatically refresh folder screen\r
+Mime-Version: 1.0\r
+Content-Type: text/plain;\r
+ charset=utf-8\r
+Content-Transfer-Encoding: 7bit\r
+Attach: \r
+Cc: notmuch@notmuchmail.org\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: Tue, 16 Dec 2014 11:57:24 -0000\r
+\r
+David Bremner wrote:\r
+> Ian Main <imain@stemwinder.org> writes:\r
+> \r
+> > This patch makes the folder screen refresh each time you 'enter' it.\r
+> > This way when you read a folder and mark items as read the changes are\r
+> > reflected immediately when you return to the folder view.\r
+> \r
+> It seems to work, but it is pretty slow for large mailboxes. I have\r
+> 270000 unread messages and there is a pause of about 1 second when\r
+> returning to the "folder screen". I'm not sure, maybe the vim interface\r
+> is just overall not usable with such large search results?\r
+\r
+I remember the times (not that far away) when paging through the result of a query\r
+in the emacs interface resulted in a lock of several seconds after each <PGDOWN> or\r
+<DOWN> keypress, even in medium sized queries of 1000 queries. This went away in the\r
+meantime.\r
+\r
+I just found the issue that caused the lag in the vim interface:\r
+https://github.com/imain/notmuch-vim/commit/649c18122befbabb52082b7d7f77abf863efc62b\r
+\r
+Using query.count_messages instead of query.search_messages.count did the trick.\r
+\r
+> \r
+> _______________________________________________\r
+> notmuch mailing list\r
+> notmuch@notmuchmail.org\r
+> http://notmuchmail.org/mailman/listinfo/notmuch\r
+\r
+\r