diff options
author | Eric Wong <e@80x24.org> | 2020-11-23 07:06:01 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-11-24 05:03:55 +0000 |
commit | be688d5b00bb77c6601b3ab680403ecd71ac4871 (patch) | |
tree | cc77f8b9a7dd6f5a357ba47e0b913302547b7be6 /lib/PublicInbox/Config.pm | |
parent | 616a08457175b442d4caeb67f9ccd9d3e69f50f5 (diff) | |
download | public-inbox-be688d5b00bb77c6601b3ab680403ecd71ac4871.tar.gz |
For a mirror of lore.kernel.org with >140 inboxes, this speeds up manifest.js.gz generation from ~1s to 40ms on my HW. This is still unacceptable when dealing with thousands of inboxes, but gets us closer to where we need to be.
Diffstat (limited to 'lib/PublicInbox/Config.pm')
-rw-r--r-- | lib/PublicInbox/Config.pm | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/PublicInbox/Config.pm b/lib/PublicInbox/Config.pm index 039eb445..251008a3 100644 --- a/lib/PublicInbox/Config.pm +++ b/lib/PublicInbox/Config.pm @@ -94,6 +94,9 @@ sub lookup_ei { $self->{-ei_by_name}->{$name} //= _fill_ei($self, "extindex.$name"); } +# special case for [extindex "all"] +sub ALL { lookup_ei($_[0], 'all') } + sub each_inbox { my ($self, $cb, @arg) = @_; # may auto-vivify if config file is non-existent: |