pub struct CacheLocalityOptimizer { /* private fields */ }
Expand description
Cache locality optimizer for work distribution
Implementations§
Source§impl CacheLocalityOptimizer
impl CacheLocalityOptimizer
Sourcepub fn record_access_pattern(&mut self, pattern: MemoryAccessPattern)
pub fn record_access_pattern(&mut self, pattern: MemoryAccessPattern)
Record memory access pattern
Sourcepub fn optimize_work_distribution(
&self,
work_items: &[usize],
num_workers: usize,
) -> Vec<Vec<usize>>
pub fn optimize_work_distribution( &self, work_items: &[usize], num_workers: usize, ) -> Vec<Vec<usize>>
Optimize work distribution based on cache locality
Sourcepub fn get_recommendations(&self) -> CacheOptimizationRecommendations
pub fn get_recommendations(&self) -> CacheOptimizationRecommendations
Get cache optimization recommendations
Trait Implementations§
Source§impl Debug for CacheLocalityOptimizer
impl Debug for CacheLocalityOptimizer
Auto Trait Implementations§
impl Freeze for CacheLocalityOptimizer
impl RefUnwindSafe for CacheLocalityOptimizer
impl Send for CacheLocalityOptimizer
impl Sync for CacheLocalityOptimizer
impl Unpin for CacheLocalityOptimizer
impl UnwindSafe for CacheLocalityOptimizer
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