[PATCH] configure: add --without-api-docs option
[notmuch-archives.git] / 47 / 78edfe2b3ec0cfcb308e40822d25d98cbec8d1
1 Return-Path: <thomas@schwinge.name>\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 7793F429E21\r
6         for <notmuch@notmuchmail.org>; Sat, 29 Oct 2011 03:39:11 -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\r
12         tests=[RCVD_IN_DNSWL_NONE=-0.0001] 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 kmlvxvSKUYUF for <notmuch@notmuchmail.org>;\r
16         Sat, 29 Oct 2011 03:39:09 -0700 (PDT)\r
17 Received: from smtprelay02.ispgateway.de (smtprelay02.ispgateway.de\r
18         [80.67.31.25])\r
19         by olra.theworths.org (Postfix) with ESMTP id 5C5CC431FB6\r
20         for <notmuch@notmuchmail.org>; Sat, 29 Oct 2011 03:39:09 -0700 (PDT)\r
21 Received: from [87.180.87.168] (helo=stokes.schwinge.homeip.net)\r
22         by smtprelay02.ispgateway.de with esmtpa (Exim 4.68)\r
23         (envelope-from <thomas@schwinge.name>) id 1RK6IZ-0005Y0-6P\r
24         for notmuch@notmuchmail.org; Sat, 29 Oct 2011 12:37:59 +0200\r
25 Received: (qmail 28842 invoked from network); 29 Oct 2011 10:37:57 -0000\r
26 Received: from kepler.schwinge.homeip.net (192.168.111.7)\r
27         by stokes.schwinge.homeip.net with QMQP; 29 Oct 2011 10:37:57 -0000\r
28 Received: (nullmailer pid 6975 invoked by uid 1000);\r
29         Sat, 29 Oct 2011 10:37:56 -0000\r
30 From: Thomas Schwinge <thomas@schwinge.name>\r
31 To: notmuch@notmuchmail.org\r
32 Subject: =?UTF-8?q?=5BPATCH=5D=20dump=3A=20Don=27t=20sort=2E?=\r
33 Date: Sat, 29 Oct 2011 12:37:37 +0200\r
34 Message-Id: <1319884657-5574-1-git-send-email-thomas@schwinge.name>\r
35 X-Mailer: git-send-email 1.7.6.3\r
36 MIME-Version: 1.0\r
37 Content-Type: text/plain; charset=UTF-8\r
38 Content-Transfer-Encoding: 8bit\r
39 X-Df-Sender: dGhvbWFzQHNjaHdpbmdlLm5hbWU=\r
40 X-BeenThere: notmuch@notmuchmail.org\r
41 X-Mailman-Version: 2.1.13\r
42 Precedence: list\r
43 List-Id: "Use and development of the notmuch mail system."\r
44         <notmuch.notmuchmail.org>\r
45 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
46         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
47 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
48 List-Post: <mailto:notmuch@notmuchmail.org>\r
49 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
50 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
51         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
52 X-List-Received-Date: Sat, 29 Oct 2011 10:39:11 -0000\r
53 \r
54 From: Thomas Schwinge <thomas@schwinge.name>\r
55 \r
56 This improves usage experience considerably in the given scenario.\r
57 \r
58 ---\r
59 \r
60 \r
61 Hi!\r
62 \r
63 I decided that it'd be useful to put the reasoning and data right next to\r
64 the source code (as opposed to putting it into the commit message), for\r
65 the next guy to read this code has it all in one place.\r
66 \r
67 \r
68 Grüße,\r
69  Thomas\r
70 \r
71 \r
72 ---\r
73 \r
74  notmuch-dump.c |    7 ++++++-\r
75  1 files changed, 6 insertions(+), 1 deletions(-)\r
76 \r
77 diff --git a/notmuch-dump.c b/notmuch-dump.c\r
78 index 7e7bc17..a431e23 100644\r
79 --- a/notmuch-dump.c\r
80 +++ b/notmuch-dump.c\r
81 @@ -45,7 +45,12 @@ notmuch_dump_command (unused (void *ctx), int argc, char *argv[])\r
82         fprintf (stderr, "Out of memory\n");\r
83         return 1;\r
84      }\r
85 -    notmuch_query_set_sort (query, NOTMUCH_SORT_MESSAGE_ID);\r
86 +    /* This used to use NOTMUCH_SORT_MESSAGE_ID.  On 2011-10-29, a measurement\r
87 +     * on a 372981 messages instance showed that wall time can be reduced from\r
88 +     * 28 minutes (sorted by Message-ID) to 15 minutes (unsorted), the latter\r
89 +     * being much more ``database-disk-layout-friendly''.  Subsequently sorting\r
90 +     * the 25 MiB of data is a no-brainer, if required.  */\r
91 +    notmuch_query_set_sort (query, NOTMUCH_SORT_UNSORTED);\r
92  \r
93      if (argc) {\r
94         output = fopen (argv[0], "w");\r
95 -- \r
96 tg: (3bafdfc..) t/dump_unsorted (depends on: baseline)\r