diff options
author | Eric Wong <e@80x24.org> | 2020-12-23 08:38:48 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-12-23 23:46:40 +0000 |
commit | 4a2e89007cb7b62151cb1869e49b27ebacfc27eb (patch) | |
tree | 91b6825adb045aa1d295dddf6ef1029683fac47a /lib/PublicInbox/SearchIdx.pm | |
parent | 361cdfd0ae67d52d8a589b4ddc6e7fa94d8a9c8d (diff) | |
download | public-inbox-4a2e89007cb7b62151cb1869e49b27ebacfc27eb.tar.gz |
This brings -nntpd startup time down from ~35s to ~5s with 50K inboxes. Further improvements ought to be possible with deeper changes to MiscIdx, since -mda having to load every inbox seems unreasonable; but this general change is fairly unintrusive.
Diffstat (limited to 'lib/PublicInbox/SearchIdx.pm')
-rw-r--r-- | lib/PublicInbox/SearchIdx.pm | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm index cf2c2c55..d1b0c724 100644 --- a/lib/PublicInbox/SearchIdx.pm +++ b/lib/PublicInbox/SearchIdx.pm @@ -106,7 +106,6 @@ sub load_xapian_writable () { } eval 'require '.$X->{WritableDatabase} or die; *sortable_serialise = $xap.'::sortable_serialise'; - *sortable_unserialise = $xap.'::sortable_unserialise'; $DB_CREATE_OR_OPEN = eval($xap.'::DB_CREATE_OR_OPEN()'); $DB_OPEN = eval($xap.'::DB_OPEN()'); my $ver = (eval($xap.'::major_version()') << 16) | @@ -501,12 +500,6 @@ sub remove_eidx_info { $self->{xdb}->replace_document($docid, $doc); } -sub int_val ($$) { - my ($doc, $col) = @_; - my $val = $doc->get_value($col) or return; # undefined is '' in Xapian - sortable_unserialise($val) + 0; # PV => IV conversion -} - sub smsg_from_doc ($) { my ($doc) = @_; my $data = $doc->get_data or return; |