pub struct MemoryOptimizationConfig {
pub enable_pooling: bool,
pub pool_strategy: PoolStrategy,
pub enable_memory_mapping: bool,
pub mmap_threshold: usize,
pub enable_adaptive_chunking: bool,
pub adaptive_chunk_size: usize,
pub enable_zero_copy: bool,
pub bandwidth_optimization: bool,
pub cache_optimization: bool,
pub preallocation_strategy: PreallocationStrategy,
}Expand description
Memory Optimization Configuration for Efficient Resource Usage
Fields§
§enable_pooling: boolEnable memory pool optimization
pool_strategy: PoolStrategyPool block size strategy
enable_memory_mapping: boolEnable memory mapping for large arrays
mmap_threshold: usizeMemory mapping threshold (bytes)
enable_adaptive_chunking: boolEnable adaptive chunking for large datasets
adaptive_chunk_size: usizeChunk size for adaptive processing
enable_zero_copy: boolEnable zero-copy operations where possible
bandwidth_optimization: boolMemory bandwidth optimization
cache_optimization: boolCache-friendly memory layouts
preallocation_strategy: PreallocationStrategyMemory pre-allocation strategy
Trait Implementations§
Source§impl Clone for MemoryOptimizationConfig
impl Clone for MemoryOptimizationConfig
Source§impl Debug for MemoryOptimizationConfig
impl Debug for MemoryOptimizationConfig
Auto Trait Implementations§
impl Freeze for MemoryOptimizationConfig
impl RefUnwindSafe for MemoryOptimizationConfig
impl Send for MemoryOptimizationConfig
impl Sync for MemoryOptimizationConfig
impl Unpin for MemoryOptimizationConfig
impl UnsafeUnpin for MemoryOptimizationConfig
impl UnwindSafe for MemoryOptimizationConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more