From 31d40ba06a49b572dacbdb5758dac8f77fb55188 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 23 Aug 2022 08:32:01 +0000 Subject: [PATCH] ibx_async_cat: access ->{git} directly 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: # -- 2.48.1