Skip to content

Commit

Permalink
Adjust default buffer size to 16k
Browse files Browse the repository at this point in the history
  • Loading branch information
jix committed Mar 12, 2021
1 parent 5397348 commit a1c6e16
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion flussab/src/byte_reader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ pub struct ByteReader<'a> {
}

impl<'a> ByteReader<'a> {
const DEFAULT_CHUNK_SIZE: usize = 4 << 10;
const DEFAULT_CHUNK_SIZE: usize = 16 << 10;

/// Creates a [`ByteReader`] for the data of a [`BufReader`].
pub fn from_buf_reader(buf_reader: BufReader<impl Read + 'a>) -> Self {
Expand Down
2 changes: 1 addition & 1 deletion flussab/src/byte_writer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ pub struct ByteWriter<'a> {
}

impl<'a> ByteWriter<'a> {
const DEFAULT_CHUNK_SIZE: usize = 4 << 10;
const DEFAULT_CHUNK_SIZE: usize = 16 << 10;

/// Creates a [`ByteWriter`] writing data to a [`Write`] instance.
pub fn from_write(write: impl Write + 'a) -> Self {
Expand Down

0 comments on commit a1c6e16

Please sign in to comment.