From cf81ca36445ada235ba83dec0bbf722322d41304 Mon Sep 17 00:00:00 2001 From: Jo <10510431+j178@users.noreply.github.com> Date: Wed, 10 Sep 2025 19:31:36 +0800 Subject: [PATCH] Use bigger buffer size for fixing trailing whitespace (#705) --- src/builtin/pre_commit_hooks/fix_trailing_whitespace.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/builtin/pre_commit_hooks/fix_trailing_whitespace.rs b/src/builtin/pre_commit_hooks/fix_trailing_whitespace.rs index 1cb1c4e4..d72bae9b 100644 --- a/src/builtin/pre_commit_hooks/fix_trailing_whitespace.rs +++ b/src/builtin/pre_commit_hooks/fix_trailing_whitespace.rs @@ -13,7 +13,7 @@ use crate::hook::Hook; use crate::run::CONCURRENCY; const MARKDOWN_LINE_BREAK: &[u8] = b" "; -const BUFFER_SIZE_THRESHOLD: usize = 16 * 1024; // 16KB +const BUFFER_SIZE_THRESHOLD: usize = 64 * 1024; // 64KB #[derive(Clone)] struct Chars(Vec);