Re: [PATCH v4 02/16] Move crypto.c into libutil
[notmuch-archives.git] / da / fda6d75bc44d1ea24fae70bf507d6b98ac9a06
1 Return-Path: <imain@redhat.com>\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 3296C431FBC\r
6         for <notmuch@notmuchmail.org>; Fri, 23 Jan 2015 08:47:06 -0800 (PST)\r
7 X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
8 X-Spam-Flag: NO\r
9 X-Spam-Score: -2.562\r
10 X-Spam-Level: \r
11 X-Spam-Status: No, score=-2.562 tagged_above=-999 required=5\r
12         tests=[DNS_FROM_AHBL_RHSBL=2.438, RCVD_IN_DNSWL_HI=-5]\r
13         autolearn=disabled\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 yP9-aQ8sV9Y5 for <notmuch@notmuchmail.org>;\r
17         Fri, 23 Jan 2015 08:47:03 -0800 (PST)\r
18 Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28])\r
19         (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))\r
20         (No client certificate requested)\r
21         by olra.theworths.org (Postfix) with ESMTPS id DD35A431FC9\r
22         for <notmuch@notmuchmail.org>; Fri, 23 Jan 2015 08:47:02 -0800 (PST)\r
23 Received: from int-mx10.intmail.prod.int.phx2.redhat.com\r
24         (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23])\r
25         by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id t0NGkxjR028783\r
26         (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256\r
27         verify=FAIL); Fri, 23 Jan 2015 11:46:59 -0500\r
28 Received: from localhost.localdomain (ovpn-113-119.phx2.redhat.com\r
29         [10.3.113.119])\r
30         by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP\r
31         id t0NGkvG0006074\r
32         (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NO);\r
33         Fri, 23 Jan 2015 11:46:57 -0500\r
34 Date: Fri, 23 Jan 2015 08:46:56 -0800\r
35 From: Ian Main <imain@redhat.com>\r
36 To: Franz Fellner <alpine.art.de@gmail.com>\r
37 Message-ID: <54c27b00aa954_3921f3b3308@ovo.mains.priv.notmuch>\r
38 In-Reply-To: <1421957807-26273-1-git-send-email-alpine.art.de@gmail.com>\r
39 References: <1421957807-26273-1-git-send-email-alpine.art.de@gmail.com>\r
40 Subject: RE: [PATCH] VIM: Improve performance of folders_render\r
41 Mime-Version: 1.0\r
42 Content-Type: text/plain;\r
43  charset=utf-8\r
44 Content-Transfer-Encoding: 7bit\r
45 Attach: \r
46 X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23\r
47 Cc: notmuch@notmuchmail.org\r
48 X-BeenThere: notmuch@notmuchmail.org\r
49 X-Mailman-Version: 2.1.13\r
50 Precedence: list\r
51 List-Id: "Use and development of the notmuch mail system."\r
52         <notmuch.notmuchmail.org>\r
53 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
54         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
55 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
56 List-Post: <mailto:notmuch@notmuchmail.org>\r
57 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
58 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
59         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
60 X-List-Received-Date: Fri, 23 Jan 2015 16:47:06 -0000\r
61 \r
62 Yes, LGTM.  This greatly improves performance of the startup screen.\r
63 \r
64     Ian\r
65 \r
66 Franz Fellner wrote:\r
67 > Simply use query.count_[messages,threads] instead of actually running\r
68 > the query and using the count attribute of the result set.\r
69 > ---\r
70 >  vim/notmuch.vim | 2 +-\r
71 >  1 file changed, 1 insertion(+), 1 deletion(-)\r
72\r
73 > diff --git a/vim/notmuch.vim b/vim/notmuch.vim\r
74 > index cb6695a..ad8b7c8 100644\r
75 > --- a/vim/notmuch.vim\r
76 > +++ b/vim/notmuch.vim\r
77 > @@ -644,7 +644,7 @@ ruby << EOF\r
78 >                                       q.add_tag_exclude(t)\r
79 >                               }\r
80 >                               $searches << search\r
81 > -                             count = count_threads ? q.search_threads.count : q.search_messages.count\r
82 > +                             count = count_threads ? q.count_threads : q.count_messages\r
83 >                               b << "%9d %-20s (%s)" % [count, name, search]\r
84 >                       end\r
85 >               end\r
86 > -- \r
87 > 2.2.1\r
88\r
89 > _______________________________________________\r
90 > notmuch mailing list\r
91 > notmuch@notmuchmail.org\r
92 > http://notmuchmail.org/mailman/listinfo/notmuch\r
93 \r
94 \r