--- /dev/null
+Return-Path: <belohrad@beesknees.cern.ch>\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 6F7BF431FB6\r
+ for <notmuch@notmuchmail.org>; Mon, 4 Jun 2012 04:57:36 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: 0\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
+ 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 vMxlYGs5NbHA for <notmuch@notmuchmail.org>;\r
+ Mon, 4 Jun 2012 04:57:35 -0700 (PDT)\r
+Received: from server.belohrad.ch (static-212-101-19-163.adsl.solnet.ch\r
+ [212.101.19.163])\r
+ by olra.theworths.org (Postfix) with ESMTP id 69192431FAF\r
+ for <notmuch@notmuchmail.org>; Mon, 4 Jun 2012 04:57:35 -0700 (PDT)\r
+Received: from beesknees.cern.ch.belohrad.ch (beesknees.cern.ch\r
+ [137.138.197.99])\r
+ (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
+ (No client certificate requested)\r
+ by server.belohrad.ch (Postfix) with ESMTPSA id 58EBD25CFA;\r
+ Mon, 4 Jun 2012 14:04:13 +0200 (CEST)\r
+From: David Belohrad <david@belohrad.ch>\r
+To: <notmuch@notmuchmail.org>\r
+Subject: poor performance when using remotely and displaying all tags\r
+User-Agent: Notmuch/0.13+37~g2f1a112 (http://notmuchmail.org) Emacs/23.4.1\r
+ (x86_64-pc-linux-gnu)\r
+Date: Mon, 04 Jun 2012 13:54:41 +0200\r
+Message-ID: <uaxmx4js35q.fsf@beesknees.cern.ch>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain; charset=us-ascii\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: Mon, 04 Jun 2012 11:57:36 -0000\r
+\r
+Dear All,\r
+\r
+I'm wondering whether there could be some optimisation done. I'm using\r
+notmuch remotely. I.e. open ssh communication and keep it running using\r
+dtach as shown on notmuch website. Works reasonably. I.e. latency of\r
+~1second between key-presses when switching between notmuch buffers.\r
+\r
+Real pain however happens when notmuch-hello shows all the tags. Then\r
+the remote-notmuch slows down by degree of order. I did a bit of\r
+profiling, and it seems that all that slowdown is in\r
+'notmuch-hello-insert-searches' and friend functions - as seen below the\r
+result of Emacs profiler.\r
+\r
+Could those be somehow improved, e.g. using local caching of the data\r
+and refreshing them only when e.g. notmuch-hello-poll-and-update is\r
+called? This would considerably speed up the user 'comfort'. It is of course\r
+understood that when a new tag is created, it would not appear in the\r
+list immediately, but after poll-and-update....\r
+\r
+\r
+any opinions?\r
+\r
+cheers\r
+d.\r
+\r
+\r
+\r
+notmuch-hello-update 2 25.16282 12.58141\r
+notmuch-hello 2 25.162806 12.581403\r
+notmuch-hello-query-counts 4 24.516050999 6.1290127499\r
+notmuch-saved-search-count 186 24.510491000 0.1317768333\r
+notmuch-hello-insert-alltags 2 24.288725 12.1443625\r
+notmuch-hello-insert-tags-section 2 24.288715 12.1443575\r
+notmuch-hello-insert-searches 2 24.023173 12.0115865\r
+notmuch-search-quit 1 12.382233 12.382233\r
+notmuch-hello-search-continuation 1 12.372998 12.372998\r
+notmuch-hello-search 1 2.197831 2.197831\r
+notmuch-search 1 2.197818 2.197818\r
+notmuch-read-query 1 2.197032 2.197032\r
+notmuch-hello-insert-saved-searches 2 0.582827 0.2914135\r
+notmuch-hello-insert-header 2 0.284633 0.1423165\r