From: Eric Wong (Contractor, The Linux Foundation) Date: Wed, 18 Apr 2018 20:33:56 +0000 (+0000) Subject: searchidx: revert default BATCH_BYTES to 1_000_000 X-Git-Tag: v1.1.0-pre1~24 X-Git-Url: http://www.git.stargrave.org/?p=public-inbox.git;a=commitdiff_plain;h=1dc0f0c10fd856166a6726034de8aec53392901a searchidx: revert default BATCH_BYTES to 1_000_000 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. --- diff --git a/lib/PublicInbox/SearchIdx.pm b/lib/PublicInbox/SearchIdx.pm index 6e44887d..7026fc4c 100644 --- a/lib/PublicInbox/SearchIdx.pm +++ b/lib/PublicInbox/SearchIdx.pm @@ -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}, };