perf!: use 64k insteadn of 8k buffers for blob_io and ephemeral_file

This commit is contained in:
Christian Schwarz
2024-04-23 13:58:21 +00:00
parent b937432a04
commit 8b10701a0f
2 changed files with 2 additions and 2 deletions

View File

@@ -121,7 +121,7 @@ impl<const BUFFERED: bool> BlobWriter<BUFFERED> {
self.offset
}
const CAPACITY: usize = if BUFFERED { PAGE_SZ } else { 0 };
const CAPACITY: usize = if BUFFERED { 64 * 1024 } else { 0 };
/// Writes the given buffer directly to the underlying `VirtualFile`.
/// You need to make sure that the internal buffer is empty, otherwise

View File

@@ -41,7 +41,7 @@ pub enum ReadResult<'a> {
}
impl RW {
const TAIL_SZ: usize = PAGE_SZ;
const TAIL_SZ: usize = 64 * 1024;
pub fn new(file: VirtualFile) -> Self {
let bytes_flushed_tracker = owned_buffers_io::util::size_tracking_writer::Writer::new(file);