pub struct CompressionPredictorConfig {
pub enabled: bool,
pub min_samples: u64,
pub candidate_ratios: Vec<f32>,
pub retrain_interval: u64,
pub max_training_samples: usize,
}Expand description
Configuration for the performance-floor compression ratio predictor (#2460).
When enabled = true, before hard compaction the predictor selects the most aggressive
compression ratio that keeps the predicted probe score above probe.hard_fail_threshold.
Requires enough training data (min_samples) before activating — during cold start the
predictor returns None and default behavior applies.
Fields§
§enabled: boolEnable the adaptive compression ratio predictor. Default: false.
min_samples: u64Minimum training samples before the predictor activates. Default: 10.
candidate_ratios: Vec<f32>Candidate compression ratios evaluated from most to least aggressive.
Default: [0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9].
retrain_interval: u64Retrain the model after this many new samples. Default: 5.
max_training_samples: usizeMaximum training samples to retain (sliding window). Default: 200.
Trait Implementations§
Source§impl Clone for CompressionPredictorConfig
impl Clone for CompressionPredictorConfig
Source§fn clone(&self) -> CompressionPredictorConfig
fn clone(&self) -> CompressionPredictorConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for CompressionPredictorConfig
impl Debug for CompressionPredictorConfig
Source§impl Default for CompressionPredictorConfig
impl Default for CompressionPredictorConfig
Source§impl<'de> Deserialize<'de> for CompressionPredictorConfigwhere
CompressionPredictorConfig: Default,
impl<'de> Deserialize<'de> for CompressionPredictorConfigwhere
CompressionPredictorConfig: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Auto Trait Implementations§
impl Freeze for CompressionPredictorConfig
impl RefUnwindSafe for CompressionPredictorConfig
impl Send for CompressionPredictorConfig
impl Sync for CompressionPredictorConfig
impl Unpin for CompressionPredictorConfig
impl UnsafeUnpin for CompressionPredictorConfig
impl UnwindSafe for CompressionPredictorConfig
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
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>
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>
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 moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request