archx 3.0.1

High-performance CPU/GPU adaptive optimization library with SIMD and Multithreading
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use serde::Serialize;

#[derive(Debug, Clone, Copy, PartialEq, Eq, Serialize)]
pub enum Policy {
    Performance,
    Balanced,
    PowerSaving,
    ProtectDevice, // Special mode for thermal/battery issues
    SmartAuto,     // Backward compatibility for legacy v2.x
}

impl Default for Policy {
    fn default() -> Self {
        Policy::Balanced
    }
}