diff options
author | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-04-18 20:33:56 +0000 |
---|---|---|
committer | Eric Wong (Contractor, The Linux Foundation) <e@80x24.org> | 2018-04-18 20:55:50 +0000 |
commit | 1dc0f0c10fd856166a6726034de8aec53392901a (patch) | |
tree | 8635dd1a1aecd7c60fa0af2b8e0ee3e32bea4429 | |
parent | 9ff904a5b93dcc7989e475e2296ff13fe530d547 (diff) | |
download | public-inbox-1dc0f0c10fd856166a6726034de8aec53392901a.tar.gz |
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.
-rw-r--r-- | lib/PublicInbox/SearchIdx.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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}, }; |