]> Sergey Matveev's repositories - public-inbox.git/commitdiff
www: preload: load ExtSearch via ->ALL
authorEric Wong <e@80x24.org>
Wed, 13 Oct 2021 07:00:38 +0000 (07:00 +0000)
committerEric Wong <e@80x24.org>
Wed, 13 Oct 2021 19:51:21 +0000 (19:51 +0000)
This ought to give us more CoW savings and fragmentation
avoidance in -httpd.

lib/PublicInbox/WWW.pm

index 5e83f76915d5f1e0b2bcf1f3afafe09eb3c50af6..b4db0582db79dfaa215f63b7f311133c64e93b80 100644 (file)
@@ -170,6 +170,7 @@ sub preload {
                if (defined($pi_cfg->{'publicinbox.cgitrc'})) {
                        $pi_cfg->limiter('-cgit');
                }
+               $pi_cfg->ALL and require PublicInbox::Isearch;
                $self->cgit;
                $self->stylesheets_prepare($_) for ('', '../', '../../');
                $self->news_www;