Skip to content

Commit 801149f

Browse files
committed
yes, portable.rs: change BUF_SIZE to 32 KiB
1 parent 27498d7 commit 801149f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/uu/yes/src/platform/portable.rs‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,10 @@
66
use std::io::{self, Write};
77

88
// it's possible that using a smaller or larger buffer might provide better performance
9+
#[cfg(target_os = "wasi")]
910
pub(super) const BUF_SIZE: usize = 16 * 1024;
11+
#[cfg(not(target_os = "wasi"))]
12+
pub(super) const BUF_SIZE: usize = 32 * 1024;
1013

1114
pub fn exec(bytes: &[u8]) -> io::Result<()> {
1215
let mut stdout = io::stdout().lock();

0 commit comments

Comments
 (0)