about summary refs log tree commit homepage
path: root/lib/PublicInbox/SearchThread.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-01-10 21:41:55 +0000
committerEric Wong <e@80x24.org>2019-01-10 21:41:55 +0000
commitb0e5062d43a96372801713ef78a78d6a1bc852bc (patch)
tree76ea973c854c945989924a40905c855258a6419c /lib/PublicInbox/SearchThread.pm
parentf6fea847bf71e5cc247497c95cdb73ccc74466d2 (diff)
parent59fd8cf084c6a67d9801c888a183eb83b552692d (diff)
downloadpublic-inbox-b0e5062d43a96372801713ef78a78d6a1bc852bc.tar.gz
* commit 'mem':
  view: more culling for search threads
  over: cull unneeded fields for get_thread
  searchmsg: remove unused fields for PSGI in Xapian results
  searchview: drop unused {seen} hashref
  searchmsg: remove Xapian::Document field
  searchmsg: get rid of termlist scanning for mid
  httpd: remove psgix.harakiri reference
Diffstat (limited to 'lib/PublicInbox/SearchThread.pm')
-rw-r--r--lib/PublicInbox/SearchThread.pm5
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;