pub struct PerformanceOptimizer { /* private fields */ }Expand description
Performance optimizer using RL-like approach
Implementations§
Source§impl PerformanceOptimizer
impl PerformanceOptimizer
pub fn new(learning_rate: f64) -> Self
pub fn record_performance(&self, throughput: f64, latency: Duration)
pub fn suggest_optimization( &self, current_threads: usize, current_queue: usize, ) -> OptimizationSuggestion
Trait Implementations§
Source§impl Clone for PerformanceOptimizer
impl Clone for PerformanceOptimizer
Source§fn clone(&self) -> PerformanceOptimizer
fn clone(&self) -> PerformanceOptimizer
Returns a duplicate of the value. Read more
1.0.0§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for PerformanceOptimizer
impl RefUnwindSafe for PerformanceOptimizer
impl Send for PerformanceOptimizer
impl Sync for PerformanceOptimizer
impl Unpin for PerformanceOptimizer
impl UnwindSafe for PerformanceOptimizer
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
🔬This is a nightly-only experimental API. (
clone_to_uninit)