Re: [PATCH v4 13/16] add indexopts to notmuch python bindings.
[notmuch-archives.git] / 0f / bba2135936ee51cd8df495cb59025569e6adee
1 Return-Path: <david@tethera.net>\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 A0833431FBC\r
6         for <notmuch@notmuchmail.org>; Sun,  5 Oct 2014 23:04:43 -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 cMnJRieRIst7 for <notmuch@notmuchmail.org>;\r
16         Sun,  5 Oct 2014 23:04:39 -0700 (PDT)\r
17 Received: from yantan.tethera.net (yantan.tethera.net [199.188.72.155])\r
18         (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits))\r
19         (No client certificate requested)\r
20         by olra.theworths.org (Postfix) with ESMTPS id EA6BD431FAE\r
21         for <notmuch@notmuchmail.org>; Sun,  5 Oct 2014 23:04:38 -0700 (PDT)\r
22 Received: from remotemail by yantan.tethera.net with local (Exim 4.80)\r
23         (envelope-from <david@tethera.net>)\r
24         id 1Xb1PQ-0004DC-Ng; Mon, 06 Oct 2014 03:04:36 -0300\r
25 Received: (nullmailer pid 18042 invoked by uid 1000); Mon, 06 Oct 2014\r
26         06:04:30 -0000\r
27 From: David Bremner <david@tethera.net>\r
28 To: Austin Clements <aclements@csail.mit.edu>\r
29 Subject: Re: [PATCH 02/11] lib: Refactor _notmuch_database_link_message\r
30 In-Reply-To: <20141005232008.GB7970@csail.mit.edu>\r
31 References: <1412345958-8278-1-git-send-email-aclements@csail.mit.edu>\r
32         <1412345958-8278-3-git-send-email-aclements@csail.mit.edu>\r
33         <87k34fot7d.fsf@maritornes.cs.unb.ca>\r
34         <20141005232008.GB7970@csail.mit.edu>\r
35 User-Agent: Notmuch/0.18.1+98~gae27403 (http://notmuchmail.org) Emacs/24.3.1\r
36         (x86_64-pc-linux-gnu)\r
37 Date: Mon, 06 Oct 2014 08:04:30 +0200\r
38 Message-ID: <871tqlpwcx.fsf@maritornes.cs.unb.ca>\r
39 MIME-Version: 1.0\r
40 Content-Type: text/plain\r
41 Cc: notmuch@notmuchmail.org\r
42 X-BeenThere: notmuch@notmuchmail.org\r
43 X-Mailman-Version: 2.1.13\r
44 Precedence: list\r
45 List-Id: "Use and development of the notmuch mail system."\r
46         <notmuch.notmuchmail.org>\r
47 List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
48         <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
49 List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
50 List-Post: <mailto:notmuch@notmuchmail.org>\r
51 List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
52 List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
53         <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
54 X-List-Received-Date: Mon, 06 Oct 2014 06:04:43 -0000\r
55 \r
56 Austin Clements <aclements@csail.mit.edu> writes:\r
57 \r
58 > Quoth David Bremner on Oct 05 at  9:45 am:\r
59 >> Austin Clements <aclements@csail.mit.edu> writes:\r
60 >> > +    void *local = talloc_new (NULL);\r
61 >> \r
62 >> What's the advantage of using a local talloc context here? Is this just\r
63 >> an optimization?\r
64 >\r
65 > There are a few allocations that wind up going in to this local\r
66 > context because of the call to _consume_metadata_thread_id, so it's\r
67 > more convenient to free this one context on return from\r
68 > _notmuch_database_link_message than to worry about tracking these\r
69 > various allocations.\r
70 \r
71 OK, but wouldn't the lazy solution be to use message as a talloc\r
72 context?\r
73 \r
74 d\r