From b597a92487dd4873282b0b1b5932dc0bd35910c9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Renault?= Date: Wed, 23 Sep 2020 11:54:41 +0200 Subject: [PATCH] Add a default max-memory value to the indexer --- src/bin/indexer.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/bin/indexer.rs b/src/bin/indexer.rs index 767dc576d..727547a21 100644 --- a/src/bin/indexer.rs +++ b/src/bin/indexer.rs @@ -86,8 +86,8 @@ struct IndexerOpt { max_nb_chunks: Option, /// MTBL max memory in bytes. - #[structopt(long)] - max_memory: Option, + #[structopt(long, default_value = "1610612736")] // 1.5 GB + max_memory: usize, /// Size of the ARC cache when indexing. #[structopt(long, default_value = "43690")] @@ -613,7 +613,7 @@ fn main() -> anyhow::Result<()> { Store::new( arc_cache_size, max_nb_chunks, - max_memory, + Some(max_memory), chunk_compression_type, chunk_compression_level, ).index_csv(rdr, i, num_threads)