Skip to content

Commit 74ca129

Browse files
committed
Bump FileEncoder buffer size to 64 kB
1 parent 7d7de5b commit 74ca129

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/rustc_serialize/src/opaque.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pub type FileEncodeResult = Result<usize, (PathBuf, io::Error)>;
1919
pub const MAGIC_END_BYTES: &[u8] = b"rust-end-file";
2020

2121
/// The size of the buffer in `FileEncoder`.
22-
const BUF_SIZE: usize = 8192;
22+
const BUF_SIZE: usize = 64 * 1024;
2323

2424
/// `FileEncoder` encodes data to file via fixed-size buffer.
2525
///

0 commit comments

Comments
 (0)