mirror of
https://github.com/neondatabase/neon.git
synced 2026-05-26 01:20:38 +00:00
perf!: use 64k insteadn of 8k buffers for blob_io and ephemeral_file
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user