From 610d89af015337ac0ba09dedeb71d1ff1d2326ea Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sat, 11 Sep 2021 23:30:45 +0000 Subject: manifest.js.gz: avoid long-lived per-epoch cat-file processes When generating per-inbox manifests, we were forgetting to cleanup per-epoch "git cat-file --batch" processes. Our previous method of generating modified times was also stupidly inefficient, so replace the pipeline with a single "git for-each-ref" invocation. --- lib/PublicInbox/ManifestJsGz.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/PublicInbox/ManifestJsGz.pm') diff --git a/lib/PublicInbox/ManifestJsGz.pm b/lib/PublicInbox/ManifestJsGz.pm index 69d81fa1..cde60245 100644 --- a/lib/PublicInbox/ManifestJsGz.pm +++ b/lib/PublicInbox/ManifestJsGz.pm @@ -27,7 +27,7 @@ sub inject_entry ($$$;$) { $ctx->{manifest}->{$url_path} = $ent; } -sub manifest_add ($$;$$) { # slow path w/o extindex "all" +sub manifest_add ($$;$$) { # slow path w/o extindex "all" (or per-inbox) my ($ctx, $ibx, $epoch, $default_desc) = @_; my $url_path = "/$ibx->{name}"; my $git; -- cgit v1.2.3-24-ge0c7