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