Re: [PATCH 08/11] search: Add stable queries to thread search results
authorJani Nikula <jani@nikula.org>
Wed, 9 Oct 2013 18:25:39 +0000 (21:25 +0300)
committerW. Trevor King <wking@tremily.us>
Fri, 7 Nov 2014 17:57:21 +0000 (09:57 -0800)
07/1d932879872a6b97e5047b98caa0c367af2bf7 [new file with mode: 0644]

diff --git a/07/1d932879872a6b97e5047b98caa0c367af2bf7 b/07/1d932879872a6b97e5047b98caa0c367af2bf7
new file mode 100644 (file)
index 0000000..5e9eb7f
--- /dev/null
@@ -0,0 +1,95 @@
+Return-Path: <jani@nikula.org>\r
+X-Original-To: notmuch@notmuchmail.org\r
+Delivered-To: notmuch@notmuchmail.org\r
+Received: from localhost (localhost [127.0.0.1])\r
+       by olra.theworths.org (Postfix) with ESMTP id 71C72431FAF\r
+       for <notmuch@notmuchmail.org>; Wed,  9 Oct 2013 11:25:50 -0700 (PDT)\r
+X-Virus-Scanned: Debian amavisd-new at olra.theworths.org\r
+X-Spam-Flag: NO\r
+X-Spam-Score: -0.7\r
+X-Spam-Level: \r
+X-Spam-Status: No, score=-0.7 tagged_above=-999 required=5\r
+       tests=[RCVD_IN_DNSWL_LOW=-0.7] autolearn=disabled\r
+Received: from olra.theworths.org ([127.0.0.1])\r
+       by localhost (olra.theworths.org [127.0.0.1]) (amavisd-new, port 10024)\r
+       with ESMTP id tn6ZifxivhIS for <notmuch@notmuchmail.org>;\r
+       Wed,  9 Oct 2013 11:25:43 -0700 (PDT)\r
+Received: from mail-ea0-f171.google.com (mail-ea0-f171.google.com\r
+       [209.85.215.171]) (using TLSv1 with cipher RC4-SHA (128/128 bits))\r
+       (No client certificate requested)\r
+       by olra.theworths.org (Postfix) with ESMTPS id B6D65431FAE\r
+       for <notmuch@notmuchmail.org>; Wed,  9 Oct 2013 11:25:42 -0700 (PDT)\r
+Received: by mail-ea0-f171.google.com with SMTP id n15so609148ead.2\r
+       for <notmuch@notmuchmail.org>; Wed, 09 Oct 2013 11:25:41 -0700 (PDT)\r
+X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;\r
+       d=1e100.net; s=20130820;\r
+       h=x-gm-message-state:from:to:cc:subject:in-reply-to:references\r
+       :user-agent:date:message-id:mime-version:content-type;\r
+       bh=b09i//JDzWOD3kFoHLCAdHflnaXHqgr1W+ZprFPGD6w=;\r
+       b=Qh2PsupbIAbZXx0ycMXX/Cw2p9c+37AoMtkLIlxI5e7aKruP4tOYhVp+Q3aT3vyeOD\r
+       d+86l74LIPgPAdGEId2mWqAksjTeFydoPxczkpFS2h2DnVjQLc0tqrOXcxQfcNnWXWv7\r
+       tTwA2NDqddEqc5nhs+eHroNrf27yGK8zj7dd9R/Kb52Q4+xKuoRblBFX/LRv5cLnD9R2\r
+       vQY1INq8hjsHj0I3zo+Pkb+cpsFRxUGXFvyTXV+tDmTPWZIQ73dDRl2cgYchB2vJrKKd\r
+       d9X12hTlxI1Fy8ahSLP0qna91XQalk+mfwKK+DdjZiLCdb6pbEq8eqUyNUHRNTum0cI8\r
+       zZfQ==\r
+X-Gm-Message-State:\r
+ ALoCoQlhcKb/W/p77YOmjwvvLGBi9AmQSjlOKs4Tp5YOO99Wt1zpbWF6ImJptIrmiXWCQ0bgSqBq\r
+X-Received: by 10.14.122.132 with SMTP id t4mr13771958eeh.20.1381343140206;\r
+       Wed, 09 Oct 2013 11:25:40 -0700 (PDT)\r
+Received: from localhost (dsl-hkibrasgw2-58c36f-91.dhcp.inet.fi.\r
+       [88.195.111.91])\r
+       by mx.google.com with ESMTPSA id m54sm91689038eex.2.1969.12.31.16.00.00\r
+       (version=TLSv1.2 cipher=RC4-SHA bits=128/128);\r
+       Wed, 09 Oct 2013 11:25:38 -0700 (PDT)\r
+From: Jani Nikula <jani@nikula.org>\r
+To: Austin Clements <amdragon@MIT.EDU>\r
+Subject: Re: [PATCH 08/11] search: Add stable queries to thread search results\r
+In-Reply-To: <20131009143658.GQ21611@mit.edu>\r
+References: <1381185201-25197-1-git-send-email-amdragon@mit.edu>\r
+       <1381185201-25197-9-git-send-email-amdragon@mit.edu>\r
+       <87fvsaao2q.fsf@nikula.org> <20131009143658.GQ21611@mit.edu>\r
+User-Agent: Notmuch/0.16+88~g563143a (http://notmuchmail.org) Emacs/24.3.1\r
+       (x86_64-pc-linux-gnu)\r
+Date: Wed, 09 Oct 2013 21:25:39 +0300\r
+Message-ID: <87a9iil2sc.fsf@nikula.org>\r
+MIME-Version: 1.0\r
+Content-Type: text/plain\r
+Cc: notmuch@notmuchmail.org\r
+X-BeenThere: notmuch@notmuchmail.org\r
+X-Mailman-Version: 2.1.13\r
+Precedence: list\r
+List-Id: "Use and development of the notmuch mail system."\r
+       <notmuch.notmuchmail.org>\r
+List-Unsubscribe: <http://notmuchmail.org/mailman/options/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=unsubscribe>\r
+List-Archive: <http://notmuchmail.org/pipermail/notmuch>\r
+List-Post: <mailto:notmuch@notmuchmail.org>\r
+List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>\r
+List-Subscribe: <http://notmuchmail.org/mailman/listinfo/notmuch>,\r
+       <mailto:notmuch-request@notmuchmail.org?subject=subscribe>\r
+X-List-Received-Date: Wed, 09 Oct 2013 18:25:50 -0000\r
+\r
+On Wed, 09 Oct 2013, Austin Clements <amdragon@MIT.EDU> wrote:\r
+> Quoth Jani Nikula on Oct 09 at  9:41 am:\r
+>> Also one talloc less. Which brings me to the main worry:\r
+>> performance. What's the impact?\r
+>\r
+> Seems to be about 1%-3% for CLI search (tested on the medium corpus).\r
+> It's hard to measure what the effect on Emacs search is, though I\r
+> would expect it to be similarly negligible.\r
+\r
+I can live with that. :)\r
+\r
+> Some work I did several attempts at this ago suggests that this slows\r
+> down tagging (though I doubt it would be noticeable for single\r
+> threads), but I also found that switching to docid-based queries\r
+> significantly sped things up:\r
+> id:CAH-f9WsPj=1Eu=g3sOePJgCTBFs6HrLdLq18xMEnJ8aZ00yCEg@mail.gmail.com\r
+> Actually, docid queries probably make tagging faster than it is *now*,\r
+> but I didn't measure that when I did the experiments.\r
+\r
+Looks like there's a few hurdles in adding that concept\r
+nicely. Something for the future.\r
+\r
+BR,\r
+Jani.\r