Bump FileEncoder
buffer size to 64 kB
This commit is contained in:
parent
7d7de5bf3c
commit
74ca12951c
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue