pub struct MemoryUtils;Expand description
Memory management utilities for standalone usage
Implementations§
Source§impl MemoryUtils
impl MemoryUtils
Sourcepub fn create_optimized_buffers(
workload_type: &str,
max_write_ops: usize,
) -> (ReadBuffer, WriteBuffer)
pub fn create_optimized_buffers( workload_type: &str, max_write_ops: usize, ) -> (ReadBuffer, WriteBuffer)
Create optimized buffers for specific workload types
Sourcepub fn estimate_memory_usage(
read_capacity: usize,
max_write_ops: usize,
avg_write_size: usize,
) -> usize
pub fn estimate_memory_usage( read_capacity: usize, max_write_ops: usize, avg_write_size: usize, ) -> usize
Estimate memory usage for given configuration
Sourcepub fn recommended_config_for_memory(available_bytes: usize) -> (usize, usize)
pub fn recommended_config_for_memory(available_bytes: usize) -> (usize, usize)
Get recommended configuration for available memory
Auto Trait Implementations§
impl Freeze for MemoryUtils
impl RefUnwindSafe for MemoryUtils
impl Send for MemoryUtils
impl Sync for MemoryUtils
impl Unpin for MemoryUtils
impl UnwindSafe for MemoryUtils
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more