pub struct CacheOptimizationConfig {
pub cache_line_size: usize,
pub l1_cache_size: usize,
pub l2_cache_size: usize,
pub l3_cache_size: usize,
pub tile_size: usize,
pub enable_prefetch: bool,
pub numa_aware: bool,
pub memory_alignment: usize,
}Expand description
Configuration for cache optimization
Fields§
§cache_line_size: usizeCache line size in bytes (typically 64 bytes on modern CPUs)
l1_cache_size: usizeL1 cache size in bytes
l2_cache_size: usizeL2 cache size in bytes
l3_cache_size: usizeL3 cache size in bytes
tile_size: usizeTile size for blocked algorithms
enable_prefetch: boolEnable memory prefetching
numa_aware: boolEnable NUMA optimizations
memory_alignment: usizeMemory alignment requirement
Trait Implementations§
Source§impl Clone for CacheOptimizationConfig
impl Clone for CacheOptimizationConfig
Source§fn clone(&self) -> CacheOptimizationConfig
fn clone(&self) -> CacheOptimizationConfig
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 moreSource§impl Debug for CacheOptimizationConfig
impl Debug for CacheOptimizationConfig
Auto Trait Implementations§
impl Freeze for CacheOptimizationConfig
impl RefUnwindSafe for CacheOptimizationConfig
impl Send for CacheOptimizationConfig
impl Sync for CacheOptimizationConfig
impl Unpin for CacheOptimizationConfig
impl UnwindSafe for CacheOptimizationConfig
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