scribe_scaling/
adaptive.rs1use serde::{Deserialize, Serialize};
4
5#[derive(Debug, Clone, Serialize, Deserialize)]
7pub struct AdaptiveConfig {
8 pub enable_adaptive_thresholds: bool,
10
11 pub repository_size_factor: f64,
13
14 pub memory_pressure_factor: f64,
16
17 pub cpu_utilization_factor: f64,
19
20 pub performance_feedback_weight: f64,
22}
23
24impl Default for AdaptiveConfig {
25 fn default() -> Self {
26 Self {
27 enable_adaptive_thresholds: true,
28 repository_size_factor: 1.0,
29 memory_pressure_factor: 0.8,
30 cpu_utilization_factor: 0.9,
31 performance_feedback_weight: 0.2,
32 }
33 }
34}