]> Sergey Matveev's repositories - public-inbox.git/commitdiff
searchidx: revert default BATCH_BYTES to 1_000_000
authorEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Wed, 18 Apr 2018 20:33:56 +0000 (20:33 +0000)
committerEric Wong (Contractor, The Linux Foundation) <e@80x24.org>
Wed, 18 Apr 2018 20:55:50 +0000 (20:55 +0000)
This increases indexing time by around 10% but roughly
halves memory usage of an -index process.

We will probably make this tunable in the future for people
with bigger/smaller machines.

lib/PublicInbox/SearchIdx.pm

index 6e44887d2651c2b20fef84e8a7d38369badf607e..7026fc4cbe76268aa443c5ee573f2860d4dfe02d 100644 (file)
@@ -22,7 +22,7 @@ require PublicInbox::Git;
 use Compress::Zlib qw(compress);
 
 use constant {
-       BATCH_BYTES => 10_000_000,
+       BATCH_BYTES => 1_000_000,
        DEBUG => !!$ENV{DEBUG},
 };