From dfef0d2c34fbf21d665c40b5ad5069e9113c35c8 Mon Sep 17 00:00:00 2001 From: "Eric Wong (Contractor, The Linux Foundation)" Date: Fri, 30 Mar 2018 01:20:45 +0000 Subject: view: speed up homepage loading time with date clamp This saves over 400ms on my system with the full LKML with over 2.8 million messages. --- lib/PublicInbox/Inbox.pm | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/PublicInbox/Inbox.pm') 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) { -- cgit v1.2.3-24-ge0c7