1 Return-Path: <matt@bubblegen.co.uk>
\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 5118F431FC0
\r
6 for <notmuch@notmuchmail.org>; Wed, 25 Mar 2015 04:21:16 -0700 (PDT)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=1.738 tagged_above=-999 required=5
\r
12 tests=[DNS_FROM_AHBL_RHSBL=2.438, RCVD_IN_DNSWL_LOW=-0.7]
\r
14 Received: from olra.theworths.org ([127.0.0.1])
\r
15 by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)
\r
16 with ESMTP id O9BI78NpV+9z for <notmuch@notmuchmail.org>;
\r
17 Wed, 25 Mar 2015 04:21:13 -0700 (PDT)
\r
18 Received: from avasout07.plus.net (avasout07.plus.net [84.93.230.235])
\r
19 (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))
\r
20 (No client certificate requested)
\r
21 by olra.theworths.org (Postfix) with ESMTPS id DDB02431FBC
\r
22 for <notmuch@notmuchmail.org>; Wed, 25 Mar 2015 04:21:12 -0700 (PDT)
\r
23 Received: from webmail04.plus.net ([84.93.228.66]) by avasout07 with smtp
\r
24 id 7nM61q0031SbfYc01nM66W; Wed, 25 Mar 2015 11:21:09 +0000
\r
26 X-CNFS-Analysis: v=2.1 cv=fZwjyigF c=1 sm=1 tr=0
\r
27 a=C5+YawzV8SR07mwocaP9vA==:117 a=Pqgwzd+QtBWunNm/3vzkeA==:17
\r
29 a=fne2aKG5GRsA:10 a=wPDyFdB5xvgA:10 a=80hmnl3cAAAA:8 a=emO1SXQWCLwA:10
\r
30 a=Q767GAiA_D4PB-lXPuYA:9 a=wPNLvfGTeEIA:10 a=tclcd6dtLQvEqt9_mmAA:9
\r
31 a=OFIISnGhPB6JD1Ix4xkA:9
\r
32 Received: from localhost ([127.0.0.1] helo=webmail.plus.net)
\r
33 by webmail04.plus.net with esmtp (Exim 4.76)
\r
34 (envelope-from <matt@bubblegen.co.uk>)
\r
35 id 1YajMv-00040P-U0; Wed, 25 Mar 2015 11:21:06 +0000
\r
36 Received: from 216.31.211.11 (proxying for unknown)
\r
37 (SquirrelMail authenticated user bubblegen+matt)
\r
38 by webmail.plus.net with HTTP; Wed, 25 Mar 2015 11:21:06 -0000
\r
39 Message-ID: <49796ef89d505ab1039478982568a0b9.squirrel@webmail.plus.net>
\r
40 In-Reply-To: <m2d23xv7e8.fsf@guru.guru-group.fi>
\r
41 References: <5511DE10.80107@bubblegen.co.uk>
\r
42 <87384u6lgb.fsf@maritornes.cs.unb.ca>
\r
43 <m2d23xv7e8.fsf@guru.guru-group.fi>
\r
44 Date: Wed, 25 Mar 2015 11:21:06 -0000
\r
45 Subject: Re: emacs / vim - time taken to open threads
\r
46 From: "Matthew Lear" <matt@bubblegen.co.uk>
\r
47 To: "Tomi Ollila" <tomi.ollila@iki.fi>
\r
48 User-Agent: SquirrelMail
\r
50 Content-Type: multipart/mixed;boundary="----=_20150325112105_65244"
\r
51 X-Priority: 3 (Normal)
\r
53 Cc: Matthew Lear <matt@bubblegen.co.uk>, notmuch@notmuchmail.org
\r
54 X-BeenThere: notmuch@notmuchmail.org
\r
55 X-Mailman-Version: 2.1.13
\r
57 Reply-To: matt@bubblegen.co.uk
\r
58 List-Id: "Use and development of the notmuch mail system."
\r
59 <notmuch.notmuchmail.org>
\r
60 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
61 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
62 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
63 List-Post: <mailto:notmuch@notmuchmail.org>
\r
64 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
65 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
66 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
67 X-List-Received-Date: Wed, 25 Mar 2015 11:21:16 -0000
\r
69 ------=_20150325112105_65244
\r
70 Content-Type: text/plain; charset="iso-8859-1"
\r
71 Content-Transfer-Encoding: 8bit
\r
73 >> My experience is that the emacs interface is faster than the vim one.
\r
74 >> At least I don't have an examples handy where emacs is slower than the
\r
75 >> vim interface at rendering a thread. At a wild guess, I suspect it has
\r
76 >> to do with how many attachments there are, and the emacs UI being
\r
77 >> overenthusiastic about processing attachements.
\r
79 > I've seen over 15 seconds of load time when opening some 20+ message
\r
80 > thread -- and jumping through messages has been slow in emacs ui.
\r
82 Here's two attachments obtained using the in-built profiler in emacs 24 -
\r
83 one for memory profiling and one for cpu. This particular thread took > 30
\r
84 secs to load and emacs was locked up the entire time. I'm no lisp expert,
\r
85 but perhaps somebody could interpret this and possible suggest what could
\r
86 be going on..? W.r.t. both cpu and memory usage, quite a lot of time seems
\r
87 to be spent in indent-rigidly and notmuch-show-insert-thread.
\r
91 ------=_20150325112105_65244
\r
92 Content-Type: text/plain; name="cpu.txt"
\r
93 Content-Transfer-Encoding: 8bit
\r
94 Content-Disposition: attachment; filename="cpu.txt"
\r
97 ------=_20150325112105_65244
\r
98 Content-Type: text/plain; name="mem.txt"
\r
99 Content-Transfer-Encoding: 8bit
\r
100 Content-Disposition: attachment; filename="mem.txt"
\r
102 - command-execute 1,274,239,745 99%
\r
103 - call-interactively 1,274,239,745 99%
\r
104 - notmuch-search-show-thread 1,244,222,992 97%
\r
105 - notmuch-show 1,244,222,992 97%
\r
106 - notmuch-show-build-buffer 1,244,184,644 97%
\r
107 - notmuch-show-insert-forest 1,052,295,452 82%
\r
108 - mapc 1,052,295,452 82%
\r
109 - #<compiled 0xd784f3> 1,052,295,452 82%
\r
110 - notmuch-show-insert-thread 1,052,295,452 82%
\r
111 - mapc 1,052,295,452 82%
\r
112 - #<compiled 0xd784cd> 1,052,295,452 82%
\r
113 - notmuch-show-insert-tree 1,052,295,452 82%
\r
114 - notmuch-show-insert-thread 840,006,831 65%
\r
115 - mapc 840,006,831 65%
\r
116 - #<compiled 0xd784cd> 840,006,831 65%
\r
117 - notmuch-show-insert-tree 840,006,831 65%
\r
118 - notmuch-show-insert-thread 475,772,280 37%
\r
119 - mapc 475,772,280 37%
\r
120 - #<compiled 0xd784cd> 475,772,280 37%
\r
121 - notmuch-show-insert-tree 475,772,280 37%
\r
122 - notmuch-show-insert-thread 393,675,698 30%
\r
123 - mapc 393,675,698 30%
\r
124 - #<compiled 0xd784cd> 393,675,698 30%
\r
125 - notmuch-show-insert-tree 393,675,698 30%
\r
126 - notmuch-show-insert-msg 393,670,578 30%
\r
127 indent-rigidly 378,976,399 29%
\r
128 + notmuch-show-insert-headers 8,573,181 0%
\r
129 + notmuch-show-strip-re 38,912 0%
\r
130 + notmuch-show-insert-headerline 21,748 0%
\r
131 + notmuch-show-message-visible 5,264 0%
\r
132 notmuch-show-set-message-properties 3,096 0%
\r
133 make-overlay 1,418 0%
\r
134 + notmuch-show-insert-msg 82,096,582 6%
\r
135 - notmuch-show-insert-msg 364,233,495 28%
\r
136 + notmuch-show-insert-body 237,892,232 18%
\r
137 indent-rigidly 123,850,002 9%
\r
138 + notmuch-show-insert-headers 377,077 0%
\r
139 + notmuch-show-insert-headerline 85,340 0%
\r
140 + notmuch-show-strip-re 20,556 0%
\r
141 + notmuch-show-headers-visible 4,208 0%
\r
142 + notmuch-show-message-visible 1,056 0%
\r
143 - notmuch-show-insert-msg 212,283,421 16%
\r
144 indent-rigidly 155,843,920 12%
\r
145 + notmuch-show-insert-body 51,496,368 4%
\r
146 + notmuch-show-insert-headers 379,990 0%
\r
147 + notmuch-show-insert-headerline 93,694 0%
\r
148 + notmuch-show-strip-re 17,802 0%
\r
149 + notmuch-show-message-visible 1,056 0%
\r
150 + notmuch-show-set-message-properties 1,056 0%
\r
151 - notmuch-query-get-threads 180,741,671 14%
\r
152 - apply 180,741,671 14%
\r
153 - notmuch-call-notmuch-sexp 180,741,671 14%
\r
154 - notmuch-call-notmuch--helper 175,917,905 13%
\r
155 apply 175,917,905 13%
\r
156 + make-temp-file 101,654 0%
\r
157 generate-new-buffer 1,029 0%
\r
158 + jit-lock-register 11,145,353 0%
\r
159 + notmuch-show-strip-re 1,144 0%
\r
160 replace-regexp-in-string 1,024 0%
\r
161 + notmuch-show-goto-first-wanted-message 24,480 0%
\r
162 + switch-to-buffer 12,839 0%
\r
163 + helm-M-x 29,989,777 2%
\r
164 + previous-line 17,280 0%
\r
165 + next-line 9,696 0%
\r
166 + notmuch-show-command-hook 266,546 0%
\r
168 - redisplay_internal (C function) 7,648 0%
\r
169 file-remote-p 5,600 0%
\r
170 + kill-this-buffer-enabled-p 2,048 0%
\r
171 mouse-fixup-help-message 1,024 0%
\r
173 ------=_20150325112105_65244--
\r