mirror of
https://github.com/uutils/coreutils.git
synced 2026-06-10 15:48:22 -07:00
wc: Increase buffer size to 256kb
Improves performance by about 4% on large files.
This commit is contained in:
@@ -32,7 +32,7 @@ use libc::S_IFIFO;
|
||||
#[cfg(any(target_os = "linux", target_os = "android"))]
|
||||
use uucore::pipes::{pipe, splice, splice_exact};
|
||||
|
||||
const BUF_SIZE: usize = 16 * 1024;
|
||||
const BUF_SIZE: usize = 256 * 1024;
|
||||
#[cfg(any(target_os = "linux", target_os = "android"))]
|
||||
const SPLICE_SIZE: usize = 128 * 1024;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user