pub struct DeltaConfig {
pub max_delta_chain: usize,
pub sparse_threshold: f32,
pub epsilon: f32,
pub enable_rle: bool,
pub max_memory_per_namespace: usize,
pub auto_compact: bool,
pub compact_threshold: usize,
}Expand description
Configuration for delta encoding
Fields§
§max_delta_chain: usizeMaximum number of deltas to chain before forcing a full snapshot
sparse_threshold: f32Threshold for sparse encoding (ratio of changed components) Below this threshold, use sparse encoding; above, store full vector
epsilon: f32Minimum change magnitude to consider a component changed
enable_rle: boolEnable run-length encoding for contiguous changes
max_memory_per_namespace: usizeMaximum memory for delta storage per namespace (bytes)
auto_compact: boolEnable automatic compaction
compact_threshold: usizeCompact when delta chain reaches this length
Implementations§
Source§impl DeltaConfig
impl DeltaConfig
Sourcepub fn with_max_chain(self, max: usize) -> Self
pub fn with_max_chain(self, max: usize) -> Self
Set max delta chain length
Sourcepub fn with_sparse_threshold(self, threshold: f32) -> Self
pub fn with_sparse_threshold(self, threshold: f32) -> Self
Set sparse threshold
Sourcepub fn with_epsilon(self, epsilon: f32) -> Self
pub fn with_epsilon(self, epsilon: f32) -> Self
Set epsilon for change detection
Sourcepub fn without_rle(self) -> Self
pub fn without_rle(self) -> Self
Disable RLE
Sourcepub fn without_auto_compact(self) -> Self
pub fn without_auto_compact(self) -> Self
Disable auto compaction
Trait Implementations§
Source§impl Clone for DeltaConfig
impl Clone for DeltaConfig
Source§fn clone(&self) -> DeltaConfig
fn clone(&self) -> DeltaConfig
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 DeltaConfig
impl Debug for DeltaConfig
Auto Trait Implementations§
impl Freeze for DeltaConfig
impl RefUnwindSafe for DeltaConfig
impl Send for DeltaConfig
impl Sync for DeltaConfig
impl Unpin for DeltaConfig
impl UnsafeUnpin for DeltaConfig
impl UnwindSafe for DeltaConfig
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> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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