pub struct RuntimeOptimizer { /* private fields */ }
Expand description
Runtime optimization controller.
Implementations§
Source§impl RuntimeOptimizer
impl RuntimeOptimizer
Sourcepub fn features(&self) -> &CpuFeatures
pub fn features(&self) -> &CpuFeatures
Get the detected CPU features.
Sourcepub fn optimal_memory_barrier(&self) -> fn()
pub fn optimal_memory_barrier(&self) -> fn()
Choose optimal memory barrier implementation.
Sourcepub fn optimal_cache_line_size(&self) -> usize
pub fn optimal_cache_line_size(&self) -> usize
Get optimal cache line size for alignment.
Sourcepub fn prefer_lock_free(&self) -> bool
pub fn prefer_lock_free(&self) -> bool
Determine if lock-free algorithms should be preferred.
Sourcepub fn recommended_worker_threads(&self) -> usize
pub fn recommended_worker_threads(&self) -> usize
Get recommended number of worker threads.
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