about summary refs log tree commit homepage
path: root/lib/PublicInbox/Inbox.pm
diff options
context:
space:
mode:
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-30 01:20:45 +0000
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-30 01:21:10 +0000
commitdfef0d2c34fbf21d665c40b5ad5069e9113c35c8 (patch)
treee43e0c822ee9ffb3ce122879447a754318f71d46 /lib/PublicInbox/Inbox.pm
parent66e91d22b9899aaf5baea05b5e1652a35472b966 (diff)
downloadpublic-inbox-dfef0d2c34fbf21d665c40b5ad5069e9113c35c8.tar.gz
This saves over 400ms on my system with the full LKML
with over 2.8 million messages.
Diffstat (limited to 'lib/PublicInbox/Inbox.pm')
-rw-r--r--lib/PublicInbox/Inbox.pm1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/PublicInbox/Inbox.pm b/lib/PublicInbox/Inbox.pm
index 265360d9..90ac9ebb 100644
--- a/lib/PublicInbox/Inbox.pm
+++ b/lib/PublicInbox/Inbox.pm
@@ -132,6 +132,7 @@ sub max_git_part {
 sub mm {
         my ($self) = @_;
         $self->{mm} ||= eval {
+                require PublicInbox::Msgmap;
                 _cleanup_later($self);
                 my $dir = $self->{mainrepo};
                 if (($self->{version} || 1) >= 2) {