Struct HardwareOptimizer
pub struct HardwareOptimizer { /* private fields */ }Expand description
Hardware-specific optimizations for different CPU architectures
Implementations§
§impl HardwareOptimizer
impl HardwareOptimizer
pub fn new() -> HardwareOptimizer
pub fn new() -> HardwareOptimizer
Create a new hardware optimizer
pub fn optimize_layout<T>(&self, data: &mut [T])
pub fn optimize_layout<T>(&self, data: &mut [T])
Optimize data structure layout for cache lines
pub fn prefetch_data<T>(&self, data: &[T], index: usize)
pub fn prefetch_data<T>(&self, data: &[T], index: usize)
Prefetch data for better cache performance
pub fn unlikely(&self, condition: bool) -> bool
Auto Trait Implementations§
impl Freeze for HardwareOptimizer
impl RefUnwindSafe for HardwareOptimizer
impl Send for HardwareOptimizer
impl Sync for HardwareOptimizer
impl Unpin for HardwareOptimizer
impl UnwindSafe for HardwareOptimizer
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