diff options
| author | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2025-04-10 17:40:48 +0200 |
|---|---|---|
| committer | John Kåre Alsaker <john.kare.alsaker@gmail.com> | 2025-04-10 18:52:03 +0200 |
| commit | 74ca12951ce22dfea4f11131f8f244038d4b5f18 (patch) | |
| tree | 250d7312621259173adf6f8ba638d19eb35525a6 /compiler/rustc_serialize | |
| parent | 7d7de5bf3c3cbf9c2c5bbc5cbfb9197a8a427d35 (diff) | |
| download | rust-74ca12951ce22dfea4f11131f8f244038d4b5f18.tar.gz rust-74ca12951ce22dfea4f11131f8f244038d4b5f18.zip | |
Bump `FileEncoder` buffer size to 64 kB
Diffstat (limited to 'compiler/rustc_serialize')
| -rw-r--r-- | compiler/rustc_serialize/src/opaque.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_serialize/src/opaque.rs b/compiler/rustc_serialize/src/opaque.rs index 81f6266f8d1..0a55504a556 100644 --- a/compiler/rustc_serialize/src/opaque.rs +++ b/compiler/rustc_serialize/src/opaque.rs @@ -19,7 +19,7 @@ pub type FileEncodeResult = Result<usize, (PathBuf, io::Error)>; pub const MAGIC_END_BYTES: &[u8] = b"rust-end-file"; /// The size of the buffer in `FileEncoder`. -const BUF_SIZE: usize = 8192; +const BUF_SIZE: usize = 64 * 1024; /// `FileEncoder` encodes data to file via fixed-size buffer. /// |
