1 Return-Path: <amdragon@mit.edu>
\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 9E6C3431FD0
\r
6 for <notmuch@notmuchmail.org>; Thu, 10 Nov 2011 21:24:51 -0800 (PST)
\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org
\r
11 X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5
\r
12 tests=[RCVD_IN_DNSWL_LOW=-0.7] 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 EZP6dx49IdNO for <notmuch@notmuchmail.org>;
\r
16 Thu, 10 Nov 2011 21:24:51 -0800 (PST)
\r
17 Received: from dmz-mailsec-scanner-8.mit.edu (DMZ-MAILSEC-SCANNER-8.MIT.EDU
\r
19 by olra.theworths.org (Postfix) with ESMTP id 235E8431FB6
\r
20 for <notmuch@notmuchmail.org>; Thu, 10 Nov 2011 21:24:51 -0800 (PST)
\r
21 X-AuditID: 12074425-b7f116d0000008fe-8b-4ebcb1a20d2d
\r
22 Received: from mailhub-auth-2.mit.edu ( [18.7.62.36])
\r
23 by dmz-mailsec-scanner-8.mit.edu (Symantec Messaging Gateway) with SMTP
\r
24 id D2.CA.02302.2A1BCBE4; Fri, 11 Nov 2011 00:24:50 -0500 (EST)
\r
25 Received: from outgoing.mit.edu (OUTGOING-AUTH.MIT.EDU [18.7.22.103])
\r
26 by mailhub-auth-2.mit.edu (8.13.8/8.9.2) with ESMTP id pAB5Ontd003996;
\r
27 Fri, 11 Nov 2011 00:24:49 -0500
\r
28 Received: from awakening.csail.mit.edu (awakening.csail.mit.edu [18.26.4.91])
\r
29 (authenticated bits=0)
\r
30 (User authenticated as amdragon@ATHENA.MIT.EDU)
\r
31 by outgoing.mit.edu (8.13.6/8.12.4) with ESMTP id pAB5OmFm007372
\r
32 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=NOT);
\r
33 Fri, 11 Nov 2011 00:24:49 -0500 (EST)
\r
34 Received: from amthrax by awakening.csail.mit.edu with local (Exim 4.77)
\r
35 (envelope-from <amdragon@MIT.EDU>)
\r
36 id 1ROje0-0002UR-1u; Fri, 11 Nov 2011 00:27:16 -0500
\r
37 Date: Fri, 11 Nov 2011 00:27:16 -0500
\r
38 From: Austin Clements <amdragon@MIT.EDU>
\r
39 To: Pieter Praet <pieter@praet.org>
\r
40 Subject: Re: [PATCH] emacs: Use a single buffer invisibility spec to fix
\r
41 quadratic search cost.
\r
42 Message-ID: <20111111052716.GU2658@mit.edu>
\r
43 References: <1320807328-13728-1-git-send-email-amdragon@mit.edu>
\r
44 <877h382jax.fsf@SSpaeth.de>
\r
45 <CAPFwwQgsqe2NE9vm2RJHHK+8hWR_uMWKLHcxm0xkjduFboAfPw@mail.gmail.com>
\r
46 <87d3czxsu9.fsf@praet.org> <20111111045341.GS2658@mit.edu>
\r
48 Content-Type: text/plain; charset=us-ascii
\r
49 Content-Disposition: inline
\r
50 In-Reply-To: <20111111045341.GS2658@mit.edu>
\r
51 User-Agent: Mutt/1.5.21 (2010-09-15)
\r
52 X-Brightmail-Tracker:
\r
53 H4sIAAAAAAAAA+NgFuplleLIzCtJLcpLzFFi42IRYrdT0V20cY+fwYcGZYvrN2cyW/x+fYPZ
\r
54 Yumv3WwOzB47Z91l93i26hazR8e+y6wBzFFcNimpOZllqUX6dglcGb0dz9gKmrgqpnbsZWxg
\r
55 XMnexcjJISFgIvFo/SIoW0ziwr31bF2MXBxCAvsYJb7dmMQI4WxglLhw5xojSJWQwEkmicsL
\r
56 ciESSxglvi/cxQqSYBFQlbi77ivYKDYBDYlt+5eDNYgIKEucfvITLM4sYCUxcUc3C4gtLJAo
\r
57 8XZSOzOIzSugLTF5fTcTxIInjBLHL3BAxAUlTs58wgLRqyVx499LoBoOIFtaYvk/sBJOAR2J
\r
58 SbeugY0XFVCRmHJyG9sERqFZSLpnIemehdC9gJF5FaNsSm6Vbm5iZk5xarJucXJiXl5qka6F
\r
59 Xm5miV5qSukmRnCou6juYJxwSOkQowAHoxIPL+ef3X5CrIllxZW5hxglOZiURHmvbNjjJ8SX
\r
60 lJ9SmZFYnBFfVJqTWnyIUYKDWUmEVzYPKMebklhZlVqUD5OS5mBREud9vcPBT0ggPbEkNTs1
\r
61 tSC1CCYrw8GhJMHLD4xpIcGi1PTUirTMnBKENBMHJ8hwHqDhf0EW8xYXJOYWZ6ZD5E8xKkqJ
\r
62 84qCNAuAJDJK8+B6YanoFaM40CvCvEwgVTzANAbX/QpoMBPQ4M3uu0EGlyQipKQaGCPnWppn
\r
63 Hzd/4+75djnfmp9fy7K+p1noNhbG3qpYd6HVU/yV6qRK9l/xjtk/V9948HHRzZmnX6kqM65U
\r
64 t9vieWmNWWy3bNnMtUb9kgY3PtxvU649VvFQwyXQJXhdgPqZ6jl3xAplTxmtP+EhNOn9ScY/
\r
65 S9jibN51VR6fF3Q4SPN17wu2jPX9/5VYijMSDbWYi4oTAcfB9JcgAwAA
\r
66 Cc: notmuch@notmuchmail.org, servilio <servilio@gmail.com>
\r
67 X-BeenThere: notmuch@notmuchmail.org
\r
68 X-Mailman-Version: 2.1.13
\r
70 List-Id: "Use and development of the notmuch mail system."
\r
71 <notmuch.notmuchmail.org>
\r
72 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,
\r
73 <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>
\r
74 List-Archive: <http://notmuchmail.org/pipermail/notmuch>
\r
75 List-Post: <mailto:notmuch@notmuchmail.org>
\r
76 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
\r
77 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,
\r
78 <mailto:notmuch-request@notmuchmail.org?subject=subscribe>
\r
79 X-List-Received-Date: Fri, 11 Nov 2011 05:24:51 -0000
\r
81 Quoth myself on Nov 10 at 11:53 pm:
\r
82 > Quoth Pieter Praet on Nov 11 at 4:04 am:
\r
83 > > I've tried getting some hard numbers using
\r
86 > > time emacs --eval '(progn
\r
88 > > (notmuch-search "*")
\r
89 > > (while (get-buffer-process (current-buffer))
\r
90 > > (sleep-for 0.1))
\r
94 > > ... but the results vary wildly on subsequent runs.
\r
96 > For me, this doesn't actually display the results buffer (though I
\r
97 > don't know why not), which means it won't test this, since the problem
\r
98 > lies in the Emacs redisplay logic.
\r
100 This may or may not actually be correct, but the following seems more
\r
101 representative on my system:
\r
103 time emacs --eval '(progn
\r
105 (notmuch-search "*")
\r
106 (while (get-buffer-process (current-buffer))
\r
111 This at least displays the buffer. I also tried
\r
112 (accept-process-output) instead of the (sleep-for 0.1), which clearly
\r
113 behaved differently, but gave only slightly higher numbers. If I
\r
114 timed just the search part, to exclude emacs start-up, I would have a
\r
115 better idea of which more closely matches my manual measurements.
\r