diff options
author | Eric Wong <e@80x24.org> | 2019-01-08 11:19:57 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2019-01-08 19:28:20 +0000 |
commit | 59fd8cf084c6a67d9801c888a183eb83b552692d (patch) | |
tree | 35f98b47583dc371526def07ddeaaa6b030d1ff8 /lib/PublicInbox/Inbox.pm | |
parent | 7766a71df4cb715a240fd97a03dc0c31ab153c21 (diff) | |
download | public-inbox-59fd8cf084c6a67d9801c888a183eb83b552692d.tar.gz |
{mapping} overhead is now down to ~1.3M at the end of a giant thread from hell.
Diffstat (limited to 'lib/PublicInbox/Inbox.pm')
-rw-r--r-- | lib/PublicInbox/Inbox.pm | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/PublicInbox/Inbox.pm b/lib/PublicInbox/Inbox.pm index 73f5761a..d57e46d2 100644 --- a/lib/PublicInbox/Inbox.pm +++ b/lib/PublicInbox/Inbox.pm @@ -302,8 +302,9 @@ sub smsg_by_mid ($$) { my ($self, $mid) = @_; my $srch = search($self) or return; # favor the Message-ID we used for the NNTP article number: - my $num = mid2num($self, $mid); - defined $num ? $srch->lookup_article($num) : undef; + defined(my $num = mid2num($self, $mid)) or return; + my $smsg = $srch->lookup_article($num) or return; + PublicInbox::SearchMsg::psgi_cull($smsg); } sub msg_by_mid ($$;$) { |