pub struct OptimizationConfig {
pub enable_timing: bool,
pub use_optimized_assembly: bool,
pub enable_stack_prefetch: bool,
pub minimize_register_saves: bool,
pub target_switch_time_ns: u32,
pub warmup_switches: u32,
}
Expand description
Configuration for context switch optimizations.
Fields§
§enable_timing: bool
Whether to measure switch timing
use_optimized_assembly: bool
Whether to use optimized assembly sequences
enable_stack_prefetch: bool
Whether to prefetch next thread’s stack
minimize_register_saves: bool
Whether to minimize register saves
target_switch_time_ns: u32
Target switch time in nanoseconds
warmup_switches: u32
Number of warmup switches before optimization
Trait Implementations§
Source§impl Clone for OptimizationConfig
impl Clone for OptimizationConfig
Source§fn clone(&self) -> OptimizationConfig
fn clone(&self) -> OptimizationConfig
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 OptimizationConfig
impl Debug for OptimizationConfig
Source§impl Default for OptimizationConfig
impl Default for OptimizationConfig
impl Copy for OptimizationConfig
Auto Trait Implementations§
impl Freeze for OptimizationConfig
impl RefUnwindSafe for OptimizationConfig
impl Send for OptimizationConfig
impl Sync for OptimizationConfig
impl Unpin for OptimizationConfig
impl UnwindSafe for OptimizationConfig
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