diff options
author | Eric Wong <e@80x24.org> | 2023-11-30 11:41:07 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2023-11-30 21:37:00 +0000 |
commit | 2e3d2fdcad7181b8b4a8893023d4819a25e54ba1 (patch) | |
tree | 114b05e53720efe6205d303fbd7d6c8d3e63b79d /lib/PublicInbox/WwwListing.pm | |
parent | fa9d151442450469f401f6e0b325c680e9a4cde2 (diff) | |
download | public-inbox-2e3d2fdcad7181b8b4a8893023d4819a25e54ba1.tar.gz |
We no longer vivify the intermediate $ibx->{-hide} hashref, instead we use $ibx->{-hide_$KEY} directly. This avoids an intermediate hashref and extra hash table lookups.
Diffstat (limited to 'lib/PublicInbox/WwwListing.pm')
-rw-r--r-- | lib/PublicInbox/WwwListing.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/WwwListing.pm b/lib/PublicInbox/WwwListing.pm index e3d2e84c..2d6c74da 100644 --- a/lib/PublicInbox/WwwListing.pm +++ b/lib/PublicInbox/WwwListing.pm @@ -79,7 +79,7 @@ sub hide_key { 'www' } sub hide_inbox { my ($ctx, $ibx, $re) = @_; - $ibx->{-hide}->{$ctx->hide_key} || + $ibx->{'-hide_'.$ctx->hide_key} || !grep(/$re/, @{$ibx->{url} // $ctx->{-name_is_url} // []}) } |