pub struct CacheOptimizationRecommendations {
pub recommended_blocksize: usize,
pub locality_friendly: bool,
pub working_set_fits_l1: bool,
pub working_set_fits_l2: bool,
pub prefetch_beneficial: bool,
}
Expand description
Cache optimization recommendations
Fields§
§recommended_blocksize: usize
Recommended block size for optimal cache usage
locality_friendly: bool
Whether the access pattern is locality-friendly
working_set_fits_l1: bool
Whether the working set fits in L1 cache
working_set_fits_l2: bool
Whether the working set fits in L2 cache
prefetch_beneficial: bool
Whether prefetching would be beneficial
Trait Implementations§
Source§impl Clone for CacheOptimizationRecommendations
impl Clone for CacheOptimizationRecommendations
Source§fn clone(&self) -> CacheOptimizationRecommendations
fn clone(&self) -> CacheOptimizationRecommendations
Returns a duplicate of the value. Read more
1.0.0 · Source§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 CacheOptimizationRecommendations
impl RefUnwindSafe for CacheOptimizationRecommendations
impl Send for CacheOptimizationRecommendations
impl Sync for CacheOptimizationRecommendations
impl Unpin for CacheOptimizationRecommendations
impl UnwindSafe for CacheOptimizationRecommendations
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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