pub struct AdaptiveCompressionConfig {
pub memory_budget: usize,
pub compression_algorithm: CompressionAlgorithm,
pub hierarchical_compression: bool,
pub block_size: usize,
pub compression_threshold: f64,
pub adaptive_compression: bool,
pub cache_size: usize,
pub out_of_core: bool,
pub temp_directory: String,
pub memory_mapping: bool,
}
Expand description
Configuration for adaptive memory compression
Fields§
§memory_budget: usize
Maximum memory budget in bytes
compression_algorithm: CompressionAlgorithm
Compression algorithm to use
hierarchical_compression: bool
Enable hierarchical compression
block_size: usize
Block size for compression
compression_threshold: f64
Compression threshold (compress when usage exceeds this ratio)
adaptive_compression: bool
Enable adaptive compression based on access patterns
cache_size: usize
Cache size for frequently accessed blocks
out_of_core: bool
Enable out-of-core processing
temp_directory: String
Temporary directory for out-of-core storage
memory_mapping: bool
Enable memory mapping
Trait Implementations§
Source§impl Clone for AdaptiveCompressionConfig
impl Clone for AdaptiveCompressionConfig
Source§fn clone(&self) -> AdaptiveCompressionConfig
fn clone(&self) -> AdaptiveCompressionConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AdaptiveCompressionConfig
impl Debug for AdaptiveCompressionConfig
Auto Trait Implementations§
impl Freeze for AdaptiveCompressionConfig
impl RefUnwindSafe for AdaptiveCompressionConfig
impl Send for AdaptiveCompressionConfig
impl Sync for AdaptiveCompressionConfig
impl Unpin for AdaptiveCompressionConfig
impl UnwindSafe for AdaptiveCompressionConfig
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
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