about summary refs log tree commit homepage
path: root/lib/PublicInbox/Search.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-09-24 10:13:39 +0000
committerEric Wong <e@80x24.org>2020-09-24 21:18:44 +0000
commit2255a4ad2fa2384c1f4cec6dd267383396cbc945 (patch)
treee5d00c41abb08184d0b44584822a1e8160d82ac0 /lib/PublicInbox/Search.pm
parent8d7216a0c278272d7d3525f4bb0ec1fa74486698 (diff)
downloadpublic-inbox-2255a4ad2fa2384c1f4cec6dd267383396cbc945.tar.gz
This switch is still undocumented, but we can reduce the scope
of our Xapian docdata dependency by moving its only caller to
SearchIdx.  This reduces the amount of code loaded by read-only
code paths.
Diffstat (limited to 'lib/PublicInbox/Search.pm')
-rw-r--r--lib/PublicInbox/Search.pm3
1 files changed, 0 insertions, 3 deletions
diff --git a/lib/PublicInbox/Search.pm b/lib/PublicInbox/Search.pm
index fb35b747..0321ca93 100644
--- a/lib/PublicInbox/Search.pm
+++ b/lib/PublicInbox/Search.pm
@@ -90,9 +90,6 @@ sub load_xapian () {
                 $ENQ_ASCENDING = $x eq 'Xapian' ?
                                 1 : Search::Xapian::ENQ_ASCENDING();
 
-                # for Smsg:
-                *PublicInbox::Smsg::sortable_unserialise =
-                                                $Xap.'::sortable_unserialise';
                 # n.b. FLAG_PURE_NOT is expensive not suitable for a public
                 # website as it could become a denial-of-service vector
                 # FLAG_PHRASE also seems to cause performance problems chert