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/SearchThread.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/SearchThread.pm')
-rw-r--r-- | lib/PublicInbox/SearchThread.pm | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/PublicInbox/SearchThread.pm b/lib/PublicInbox/SearchThread.pm index be290980..931bd579 100644 --- a/lib/PublicInbox/SearchThread.pm +++ b/lib/PublicInbox/SearchThread.pm @@ -53,6 +53,11 @@ sub _add_message ($$) { my $this = _get_cont_for_id($id_table, $smsg->{mid}); $this->{smsg} = $smsg; + # saves around 4K across 1K messages + # TODO: move this to a more appropriate place, breaks tests + # if we do it during psgi_cull + delete $smsg->{num}; + # B. For each element in the message's References field: defined(my $refs = $smsg->{references}) or return; |