From ad10b9eb388724390d190591a9aa1a07cb47d8df Mon Sep 17 00:00:00 2001 From: Olivier 'reivilibre Date: Sun, 27 Mar 2022 19:45:44 +0100 Subject: [PATCH] Bump up size cutoff to 4 GiB (uncompressed) --- quickpeep_raker/src/rakepack_emitter.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/quickpeep_raker/src/rakepack_emitter.rs b/quickpeep_raker/src/rakepack_emitter.rs index eec8015..50b1e06 100644 --- a/quickpeep_raker/src/rakepack_emitter.rs +++ b/quickpeep_raker/src/rakepack_emitter.rs @@ -11,8 +11,8 @@ use std::path::Path; use std::time::Duration; use tokio::sync::mpsc::Receiver; -/// Size at which a new pack file will be created. 256 MiB, will later be configurable? -pub const SUGGESTED_SIZE_CUTOFF: usize = 256 * 1024 * 1024; +/// Size at which a new pack file will be created. 4 GiB, will later be configurable? +pub const SUGGESTED_SIZE_CUTOFF: usize = 4 * 1024 * 1024 * 1024; /// The Zstd compression level to use. 16 is quite high, but we really want the compact file sizes; /// willing to pay quite a lot in compression speed.