about summary refs log tree commit homepage
path: root/lib/PublicInbox/WatchMaildir.pm
diff options
context:
space:
mode:
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-19 08:14:56 +0000
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>2018-03-19 08:16:34 +0000
commit24294059123d4edd9e31f211d72c641a5d1a0d72 (patch)
tree3eeecf4fa6bbc084be43db893f65657fa575b00b /lib/PublicInbox/WatchMaildir.pm
parent4b802d901372c284e0a3b9e515284c9e4cbfd101 (diff)
downloadpublic-inbox-24294059123d4edd9e31f211d72c641a5d1a0d72.tar.gz
While parallel processes improves import speed for initial
imports; they are probably not necessary for daily mail imports
via WatchMaildir and certainly not for public-inbox-init.  Save
some memory for daily use and even helps improve readability of
some subroutines by showing which methods they call remotely.
Diffstat (limited to 'lib/PublicInbox/WatchMaildir.pm')
-rw-r--r--lib/PublicInbox/WatchMaildir.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/PublicInbox/WatchMaildir.pm b/lib/PublicInbox/WatchMaildir.pm
index 2808b726..e28e602a 100644
--- a/lib/PublicInbox/WatchMaildir.pm
+++ b/lib/PublicInbox/WatchMaildir.pm
@@ -259,7 +259,9 @@ sub _importer_for {
                 if ($v == 2) {
                         eval { require PublicInbox::V2Writable };
                         die "v2 not supported: $@\n" if $@;
-                        PublicInbox::V2Writable->new($inbox);
+                        my $v2w = PublicInbox::V2Writable->new($inbox);
+                        $v2w->{parallel} = 0;
+                        $v2w;
                 } elsif ($v == 1) {
                         my $git = $inbox->git;
                         my $name = $inbox->{name};