From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: X-Spam-Status: No, score=-4.2 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, T_SCC_BODY_TEXT_LINE shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id C72831F61D for ; Tue, 23 Aug 2022 08:32:04 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=80x24.org; s=selector1; t=1661243524; bh=yppcp/Ec/5JIafnHwFxcbNDdrqDKjCXS4YxjpKfO1NU=; h=From:To:Subject:Date:In-Reply-To:References:From; b=TaWxERzzZ0fb8KxvfucuwQNWkwrhhrhHWrS2ZjtBZlXVTpMYx1qRoL5vYsL8gbVxV IyH80NvDKGRoHrb5hJj0pXWz0wopb8LeXkwcNnN0RsLo4+2NPgrxmo8wZKNxy+pYfv oChux6/OPf+aocY3eVeUPujI0yDSTd3FpMxg1SVM= From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 6/8] ibx_async_cat: access ->{git} directly Date: Tue, 23 Aug 2022 08:32:01 +0000 Message-Id: <20220823083203.1128993-7-e@80x24.org> In-Reply-To: <20220823083203.1128993-1-e@80x24.org> References: <20220823083203.1128993-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: This will enable callers to pass non-Inbox-ish hashrefs as the arg. This benefits existing Inbox-ish objects, too, as it avoids a slow method dispatch for both ExtSearch and Inbox. --- lib/PublicInbox/GitAsyncCat.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/PublicInbox/GitAsyncCat.pm b/lib/PublicInbox/GitAsyncCat.pm index 6b7425f6..c12c4ec2 100644 --- a/lib/PublicInbox/GitAsyncCat.pm +++ b/lib/PublicInbox/GitAsyncCat.pm @@ -47,7 +47,7 @@ sub event_step { sub ibx_async_cat ($$$$) { my ($ibx, $oid, $cb, $arg) = @_; - my $git = $ibx->git; + my $git = $ibx->{git} // $ibx->git; # {topdir} means ExtSearch (likely [extindex "all"]) with potentially # 100K alternates. git(1) has a proposed patch for 100K alternates: #