diff options
author | Eric Wong <e@80x24.org> | 2016-07-09 03:18:31 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2016-07-09 03:20:18 +0000 |
commit | f0051b3faf6fee449c6796e32a988b9b8ba8fb66 (patch) | |
tree | d8f6e13ee0136bfc4ef8598a69649a9b1c6efbea /lib/PublicInbox/ExtMsg.pm | |
parent | 8d479224468ad9c8053ed80cd3532b8d9343e653 (diff) | |
download | public-inbox-f0051b3faf6fee449c6796e32a988b9b8ba8fb66.tar.gz |
Reduce the size of hashes a bit and drops some unneeded hash lookups for uncommon paths.
Diffstat (limited to 'lib/PublicInbox/ExtMsg.pm')
-rw-r--r-- | lib/PublicInbox/ExtMsg.pm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/PublicInbox/ExtMsg.pm b/lib/PublicInbox/ExtMsg.pm index 019d50a4..2a9316b1 100644 --- a/lib/PublicInbox/ExtMsg.pm +++ b/lib/PublicInbox/ExtMsg.pm @@ -23,16 +23,14 @@ our @EXT_URL = ( sub ext_msg { my ($ctx) = @_; - my $pi_config = $ctx->{pi_config}; my $cur = $ctx->{-inbox}; my $mid = $ctx->{mid}; - my $env = $ctx->{env}; eval { require PublicInbox::Search }; my $have_xap = $@ ? 0 : 1; my (@nox, @ibx, @found); - $pi_config->each_inbox(sub { + $ctx->{www}->{pi_config}->each_inbox(sub { my ($other) = @_; return if $other->{name} eq $cur->{name} || !$other->base_url; |