From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF shortcircuit=no autolearn=ham autolearn_force=no version=3.4.6 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 984C31F44D for ; Fri, 26 Apr 2024 11:21:03 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1714130463; bh=BqVke8JjKwqauKh/o5uzcXPfTj9K7D6lidZ9Y7HSRPg=; h=From:To:Subject:Date:From; b=gnW0NkDsvPHWEVz1hUCBdPxAO/+kOPzF8750H/Ho9NHkVOPUrP10tZn1tE05fKVY1 4647aFiodXntOpH9mpQIXxkDYnnkxCS1D0PaMigfUtRAmsMSLytP58eP0iM6iuvhFt 9SVjemcs0L1I66GM8K4mWKSJhCspjOJcwZnZPj70= From: Eric Wong To: spew@80x24.org Subject: [PATCH 1/4] test_common: don't needlessly rebuild C++ Xapian helper Date: Fri, 26 Apr 2024 11:21:00 +0000 Message-ID: <20240426112103.1527488-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: We should almost always be calling `check_build' instead of `build'. Using ccache masked some of the overhead from this, but various linker implementations are still slow. --- lib/PublicInbox/TestCommon.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm index b8b7b827..708fa698 100644 --- a/lib/PublicInbox/TestCommon.pm +++ b/lib/PublicInbox/TestCommon.pm @@ -726,7 +726,7 @@ SKIP: { require File::Path; eval { # use XDG_CACHE_HOME, first: require PublicInbox::XapHelperCxx; - PublicInbox::XapHelperCxx::build(); + PublicInbox::XapHelperCxx::check_build(); }; local %ENV = %ENV; delete $ENV{XDG_DATA_HOME};