diff --git a/.clippy.toml b/.clippy.toml index dc3347cd6..9eedc78ec 100644 --- a/.clippy.toml +++ b/.clippy.toml @@ -1,5 +1,5 @@ allow-mixed-uninlined-format-args = false -array-size-threshold = 262144 +array-size-threshold = 65538 avoid-breaking-exported-api = false check-private-items = true cognitive-complexity-threshold = 24 diff --git a/src/uu/wc/src/count_fast.rs b/src/uu/wc/src/count_fast.rs index 79c9f8227..b84ac634e 100644 --- a/src/uu/wc/src/count_fast.rs +++ b/src/uu/wc/src/count_fast.rs @@ -29,7 +29,7 @@ use libc::S_IFIFO; #[cfg(any(target_os = "linux", target_os = "android"))] use uucore::pipes::{MAX_ROOTLESS_PIPE_SIZE, pipe, splice, splice_exact}; -const BUF_SIZE: usize = 256 * 1024; +const BUF_SIZE: usize = 64 * 1024; /// This is a Linux-specific function to count the number of bytes using the /// `splice` system call, which is faster than using `read`.