From: Eric Wong <e@80x24.org>
To: meta@public-inbox.org
Subject: [PATCH 1/2] xt/perf-threading: modernize + remove Xapian dependency
Date: Mon, 10 Jun 2024 11:34:26 +0000 [thread overview]
Message-ID: <20240610113427.122371-2-e@80x24.org> (raw)
In-Reply-To: <20240610113427.122371-1-e@80x24.org>
Threading hasn't required Xapian (only SQLite) for a while now;
but I'm revisiting this test for another minor optimization.
---
xt/perf-threading.t | 10 ++++------
1 file changed, 4 insertions(+), 6 deletions(-)
diff --git a/xt/perf-threading.t b/xt/perf-threading.t
index 57e9db9b..24c1a873 100644
--- a/xt/perf-threading.t
+++ b/xt/perf-threading.t
@@ -1,18 +1,16 @@
-# Copyright (C) 2016-2021 all contributors <meta@public-inbox.org>
+#!perl -w
+# Copyright (C) all contributors <meta@public-inbox.org>
# License: AGPL-3.0+ <https://www.gnu.org/licenses/agpl-3.0.txt>
#
# real-world testing of search threading
-use strict;
-use warnings;
+use v5.12;
use Test::More;
use Benchmark qw(:all);
use PublicInbox::Inbox;
my $inboxdir = $ENV{GIANT_INBOX_DIR} // $ENV{GIANT_PI_DIR};
plan skip_all => "GIANT_INBOX_DIR not defined for $0" unless $inboxdir;
my $ibx = PublicInbox::Inbox->new({ inboxdir => $inboxdir });
-eval { require PublicInbox::Search };
-my $srch = $ibx->search;
-plan skip_all => "$inboxdir not configured for search $0 $@" unless $srch;
+$ibx->over or plan skip_all => "$inboxdir not indexed for $0 $@";
require PublicInbox::View;
next prev parent reply other threads:[~2024-06-10 11:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-10 11:34 [PATCH 0/2] www: minor mem reduction in message threading Eric Wong
2024-06-10 11:34 ` Eric Wong [this message]
2024-06-10 11:34 ` [PATCH 2/2] www: deduplicate Message-ID in threading + skeleton Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://public-inbox.org/README
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240610113427.122371-2-e@80x24.org \
--to=e@80x24.org \
--cc=meta@public-inbox.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).