X-Envelope-From: notmuch-bounces@notmuchmail.org  Fri Jun 19 00:20:38 2026
Return-Path: <notmuch-bounces@notmuchmail.org>
X-Original-To: nmbug@yantan.tethera.net
Delivered-To: nmbug@yantan.tethera.net
Received: from yantan.tethera.net (localhost [127.0.0.1])
	by mail.notmuchmail.org (Postfix) with ESMTP id 5799F5F879;
	Fri, 19 Jun 2026 00:20:38 +0000 (UTC)
Received: from phubs.tethera.net (phubs.tethera.net [IPv6:2607:5300:60:3a9d::1])
	by mail.notmuchmail.org (Postfix) with ESMTPS id 8BCDC5E01A
	for <notmuch@notmuchmail.org>; Fri, 19 Jun 2026 00:20:36 +0000 (UTC)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=tethera.net;
 i=@tethera.net; q=dns/txt; s=2024; t=1781828434; h=from : to : subject
 : in-reply-to : references : date : message-id : mime-version :
 content-type : from; bh=LCpN08MMbpa6NhhKi0Udbvo9mmeOVEu6n9tR+zZBJ94=;
 b=SdPuwwAc70AUlNR9u9WPYv+dZT2oXwRecWwZ7rjGnpf8J4rY8c2yLGzB0F3E7qgZ9QbEb
 +AC/opAduMBGgwhohtcT3+HerkXbcVY1qY9obr6tyf+4rxCvbWRfaOz+64QJ9bPL0DV1ih2
 bgncBZZJiWK5OqbTYZ90pFcpnsItyDNLEJmT695PxpUntWZJ6aha2B1uyvGGTzWdwVM0+EX
 FQIBUVL16zB+YzjqsHRxJmUaj2P+6X2uowYSKGJ82/TNGnxxvMaTAAQgLYQ/20rh/l/i7X7
 Ofa2NLU5LLArVbxoRZveKECcU6TzgZTfNLpCrTdYkZWNiD2RSAvTUZdEU89A==
Received: from tethera.net (unknown [IPv6:240a:61:1103:8830:8766:3c30:e77b:18d8])
	by phubs.tethera.net (Postfix) with ESMTPS id C375E1800F7;
	Thu, 18 Jun 2026 21:20:32 -0300 (ADT)
Received: (nullmailer pid 1122288 invoked by uid 1000);
	Fri, 19 Jun 2026 00:20:28 -0000
From: David Bremner <david@tethera.net>
To: Anton Khirnov <anton@khirnov.net>, notmuch@notmuchmail.org
Subject: Re: [PATCH v4 3/6] test: add tests for attachment filtering
In-Reply-To: <177649733250.3642.1582452438689018762@lain.khirnov.net>
References: <20260307160342.16482-1-anton@khirnov.net>
 <20260307160342.16482-4-anton@khirnov.net> <87341b9mza.fsf@tethera.net>
 <177649733250.3642.1582452438689018762@lain.khirnov.net>
Date: Fri, 19 Jun 2026 09:20:27 +0900
Message-ID: <87h5mzwfck.fsf@tethera.net>
MIME-Version: 1.0
Message-ID-Hash: AERCEEVTJ6JP6VPHBJ24FFKJRUNK327M
X-Message-ID-Hash: AERCEEVTJ6JP6VPHBJ24FFKJRUNK327M
X-MailFrom: david@tethera.net
X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; header-match-notmuch.notmuchmail.org-0; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header
X-Mailman-Version: 3.3.3
Precedence: list
List-Id: "Use and development of the notmuch mail system." <notmuch.notmuchmail.org>
List-Help: <mailto:notmuch-request@notmuchmail.org?subject=help>
List-Owner: <mailto:notmuch-owner@notmuchmail.org>
List-Post: <mailto:notmuch@notmuchmail.org>
List-Subscribe: <mailto:notmuch-join@notmuchmail.org>
List-Unsubscribe: <mailto:notmuch-leave@notmuchmail.org>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit

Anton Khirnov <anton@khirnov.net> writes:

> Quoting David Bremner (2026-04-04 09:57:29)
>> Anton Khirnov <anton@khirnov.net> writes:
>> 
>> > ---
>> >  test/T681-index-filter.sh | 84 +++++++++++++++++++++++++++++++++++++++
>> >  1 file changed, 84 insertions(+)
>> >  create mode 100755 test/T681-index-filter.sh
>> >
>> 
>> BTW, I think we talked about performance tests for the filtering at some
>> point.  I just checked, and the enron corpus has some
>> attachements. There are about 6600 word documents and about 3500 excell
>> documents. I guess we probably should not trust those attachments.
>
> The question is, are measuring performance of just the libnotmuch
> interface, or of the whole package including the sample filter.py,
> whatever programs it invokes, and the sandbox?

We chatted about this briefly on IRC. To summarize my comments from
then,

1) Existing performance tests are enough for making sure the
theoretically negligible performance impact for people not using the new
feature really is negligible.

2) It seems likely that users will have performance problems to debg
with this new feature, and it would be helpful to have some kind of
baseline test so that we can establish that some trivial filtering
is within expected an performance on their machine. This will also help
guard against performance regressions in attachment indexing introduced
by other changes to libnotmuch.

I don't think we really discussed how much effort was involved with
implementing (and I guess maintaining) such a test, since we didn't
really get past motivation(s) for doing so.

d

_______________________________________________
notmuch mailing list -- notmuch@notmuchmail.org
To unsubscribe send an email to notmuch-leave@notmuchmail.org
