Re: [PATCH] emacs: wash: make word-wrap bound message width
[notmuch-archives.git] / 15 / 04aefe375551a1af101e68d75b0f1c1e74a44d
1 Return-Path: <belohrad@beesknees.cern.ch>\r
2 X-Original-To: notmuch@notmuchmail.org\r
3 Delivered-To: notmuch@notmuchmail.org\r
4 Received: from localhost (localhost [127.0.0.1])\r
5         by olra.theworths.org (Postfix) with ESMTP id 6F7BF431FB6\r
6         for <notmuch@notmuchmail.org>; Mon,  4 Jun 2012 04:57:36 -0700 (PDT)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: 0\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=0 tagged_above=-999 required=5 tests=[none]\r
12         autolearn=disabled\r
13 Received: from olra.theworths.org ([127.0.0.1])\r
14         by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
15         with ESMTP id vMxlYGs5NbHA for <notmuch@notmuchmail.org>;\r
16         Mon,  4 Jun 2012 04:57:35 -0700 (PDT)\r
17 Received: from server.belohrad.ch (static-212-101-19-163.adsl.solnet.ch\r
18         [212.101.19.163])\r
19         by olra.theworths.org (Postfix) with ESMTP id 69192431FAF\r
20         for <notmuch@notmuchmail.org>; Mon,  4 Jun 2012 04:57:35 -0700 (PDT)\r
21 Received: from beesknees.cern.ch.belohrad.ch (beesknees.cern.ch\r
22         [137.138.197.99])\r
23         (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
24         (No client certificate requested)\r
25         by server.belohrad.ch (Postfix) with ESMTPSA id 58EBD25CFA;\r
26         Mon,  4 Jun 2012 14:04:13 +0200 (CEST)\r
27 From: David Belohrad <david@belohrad.ch>\r
28 To: <notmuch@notmuchmail.org>\r
29 Subject: poor performance when using remotely and displaying all tags\r
30 User-Agent: Notmuch/0.13+37~g2f1a112 (http://notmuchmail.org) Emacs/23.4.1\r
31         (x86_64-pc-linux-gnu)\r
32 Date: Mon, 04 Jun 2012 13:54:41 +0200\r
33 Message-ID: <uaxmx4js35q.fsf@beesknees.cern.ch>\r
34 MIME-Version: 1.0\r
35 Content-Type: text/plain; charset=us-ascii\r
36 X-BeenThere: notmuch@notmuchmail.org\r
37 X-Mailman-Version: 2.1.13\r
38 Precedence: list\r
39 List-Id: "Use and development of the notmuch mail system."\r
40         <notmuch.notmuchmail.org>\r
41 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
42         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
43 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
44 List-Post: <mailto:notmuch@notmuchmail.org>\r
45 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
46 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
47         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
48 X-List-Received-Date: Mon, 04 Jun 2012 11:57:36 -0000\r
49 \r
50 Dear All,\r
51 \r
52 I'm wondering whether there could be some optimisation done. I'm using\r
53 notmuch remotely. I.e. open ssh communication and keep it running using\r
54 dtach as shown on notmuch website. Works reasonably. I.e. latency of\r
55 ~1second between key-presses when switching between notmuch buffers.\r
56 \r
57 Real pain however happens when notmuch-hello shows all the tags. Then\r
58 the remote-notmuch slows down by degree of order. I did a bit of\r
59 profiling, and it seems that all that slowdown is in\r
60 'notmuch-hello-insert-searches' and friend functions - as seen below the\r
61 result of Emacs profiler.\r
62 \r
63 Could those be somehow improved, e.g. using local caching of the data\r
64 and refreshing them only when e.g. notmuch-hello-poll-and-update is\r
65 called? This would considerably speed up the user 'comfort'. It is of course\r
66 understood that when a new tag is created, it would not appear in the\r
67 list immediately, but after poll-and-update....\r
68 \r
69 \r
70 any opinions?\r
71 \r
72 cheers\r
73 d.\r
74 \r
75 \r
76 \r
77 notmuch-hello-update                                   2           25.16282      12.58141\r
78 notmuch-hello                                          2           25.162806     12.581403\r
79 notmuch-hello-query-counts                             4           24.516050999  6.1290127499\r
80 notmuch-saved-search-count                             186         24.510491000  0.1317768333\r
81 notmuch-hello-insert-alltags                           2           24.288725     12.1443625\r
82 notmuch-hello-insert-tags-section                      2           24.288715     12.1443575\r
83 notmuch-hello-insert-searches                          2           24.023173     12.0115865\r
84 notmuch-search-quit                                    1           12.382233     12.382233\r
85 notmuch-hello-search-continuation                      1           12.372998     12.372998\r
86 notmuch-hello-search                                   1           2.197831      2.197831\r
87 notmuch-search                                         1           2.197818      2.197818\r
88 notmuch-read-query                                     1           2.197032      2.197032\r
89 notmuch-hello-insert-saved-searches                    2           0.582827      0.2914135\r
90 notmuch-hello-insert-header                            2           0.284633      0.1423165\r