Skip to content

Commit 33abccd

Browse files
committed
Bump write buffer size to 8KiB
1 parent 8ac99af commit 33abccd

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

crates/commitlog/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ pub struct Options {
9393
/// Size in bytes of the memory buffer holding commit data before flushing
9494
/// to storage.
9595
///
96-
/// Default: 4KiB
96+
/// Default: 8KiB
9797
#[cfg_attr(feature = "serde", serde(default = "Options::default_write_buffer_size"))]
9898
pub write_buffer_size: usize,
9999
}
@@ -109,7 +109,7 @@ impl Options {
109109
pub const DEFAULT_OFFSET_INDEX_INTERVAL_BYTES: NonZeroU64 = NonZeroU64::new(4096).expect("4096 > 0, qed");
110110
pub const DEFAULT_OFFSET_INDEX_REQUIRE_SEGMENT_FSYNC: bool = false;
111111
pub const DEFAULT_PREALLOCATE_SEGMENTS: bool = false;
112-
pub const DEFAULT_WRITE_BUFFER_SIZE: usize = 4 * 1024;
112+
pub const DEFAULT_WRITE_BUFFER_SIZE: usize = 8 * 1024;
113113

114114
pub const DEFAULT: Self = Self {
115115
log_format_version: DEFAULT_LOG_FORMAT_VERSION,

0 commit comments

Comments
 (0)