From fb5c42e7c86b2402b8409c7a60827a0df79af7e0 Mon Sep 17 00:00:00 2001 From: Zhaofeng Li Date: Mon, 22 May 2023 16:00:34 -0600 Subject: [PATCH] gha-cache: Increase chunk size This matches the behavior in the official toolkit: --- gha-cache/src/api.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gha-cache/src/api.rs b/gha-cache/src/api.rs index b99d53a..c7ec242 100644 --- a/gha-cache/src/api.rs +++ b/gha-cache/src/api.rs @@ -40,10 +40,10 @@ const DEFAULT_VERSION: &str = concat!(env!("CARGO_PKG_NAME"), "/", env!("CARGO_P /// The chunk size in bytes. /// /// We greedily read this much from the input stream at a time. -const CHUNK_SIZE: usize = 8 * 1024 * 1024; +const CHUNK_SIZE: usize = 32 * 1024 * 1024; /// The number of chunks to upload at the same time. -const MAX_CONCURRENCY: usize = 5; +const MAX_CONCURRENCY: usize = 4; type Result = std::result::Result;