pub struct RuntimeOptimizer { /* private fields */ }Expand description
Advanced runtime compilation and optimization engine
Implementations§
Source§impl RuntimeOptimizer
impl RuntimeOptimizer
Sourcepub fn new(config: RuntimeOptimizerConfig) -> Self
pub fn new(config: RuntimeOptimizerConfig) -> Self
Create a new runtime optimizer
Sourcepub fn get_optimized_variant(
&self,
operation_id: &str,
characteristics: &DataCharacteristics,
strategy: &OptimizationStrategy,
) -> SklResult<String>
pub fn get_optimized_variant( &self, operation_id: &str, characteristics: &DataCharacteristics, strategy: &OptimizationStrategy, ) -> SklResult<String>
Get or compile optimized variant
Sourcepub fn get_compilation_stats(&self) -> SklResult<CompilationStats>
pub fn get_compilation_stats(&self) -> SklResult<CompilationStats>
Get compilation statistics
Sourcepub fn trigger_pgo_recompilation(
&self,
operation_id: &str,
performance_profiles: &[PerformanceProfile],
) -> SklResult<()>
pub fn trigger_pgo_recompilation( &self, operation_id: &str, performance_profiles: &[PerformanceProfile], ) -> SklResult<()>
Trigger profile-guided recompilation
Trait Implementations§
Auto Trait Implementations§
impl Freeze for RuntimeOptimizer
impl RefUnwindSafe for RuntimeOptimizer
impl Send for RuntimeOptimizer
impl Sync for RuntimeOptimizer
impl Unpin for RuntimeOptimizer
impl UnwindSafe for RuntimeOptimizer
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
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>
Converts
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>
Converts
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 more