pub struct JitConfig {
pub initial_optimization: OptimizationLevel,
pub hot_path_optimization: OptimizationLevel,
pub hot_path_threshold: usize,
pub enable_specialization: bool,
pub max_specializations: usize,
pub enable_adaptive_optimization: bool,
pub profiling_window: usize,
pub cache_size: usize,
pub enable_deoptimization: bool,
pub deoptimization_threshold: usize,
}Expand description
Configuration for JIT compilation.
Fields§
§initial_optimization: OptimizationLevelInitial optimization level for first compilation
hot_path_optimization: OptimizationLevelHot path optimization level
hot_path_threshold: usizeMinimum execution count to consider a path “hot”
enable_specialization: boolEnable shape specialization
max_specializations: usizeMaximum number of specialized versions per graph
enable_adaptive_optimization: boolEnable adaptive optimization
profiling_window: usizeProfiling window size for hot path detection
cache_size: usizeCache size limit (number of compiled graphs)
enable_deoptimization: boolEnable deoptimization for rarely used paths
deoptimization_threshold: usizeThreshold for deoptimization (executions per time window)
Trait Implementations§
Auto Trait Implementations§
impl Freeze for JitConfig
impl RefUnwindSafe for JitConfig
impl Send for JitConfig
impl Sync for JitConfig
impl Unpin for JitConfig
impl UnwindSafe for JitConfig
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