pub struct AdaptiveChunking { /* private fields */ }
Expand description
Adaptive work chunk sizing based on workload characteristics
Implementations§
Source§impl AdaptiveChunking
impl AdaptiveChunking
Sourcepub fn record_performance(&mut self, performance: ChunkPerformance)
pub fn record_performance(&mut self, performance: ChunkPerformance)
Record performance for a chunk execution
Sourcepub fn get_chunksize(&self) -> usize
pub fn get_chunksize(&self) -> usize
Get the current optimal chunk size
Sourcepub fn predict_optimal_chunksize(
&self,
matrixsize: (usize, usize),
operation_type: MatrixOperationType,
num_workers: usize,
) -> usize
pub fn predict_optimal_chunksize( &self, matrixsize: (usize, usize), operation_type: MatrixOperationType, num_workers: usize, ) -> usize
Predict optimal chunk size for a given matrix operation without execution
Sourcepub fn get_stats(&self) -> AdaptiveChunkingStats
pub fn get_stats(&self) -> AdaptiveChunkingStats
Get performance statistics
Trait Implementations§
Source§impl Clone for AdaptiveChunking
impl Clone for AdaptiveChunking
Source§fn clone(&self) -> AdaptiveChunking
fn clone(&self) -> AdaptiveChunking
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 AdaptiveChunking
impl RefUnwindSafe for AdaptiveChunking
impl Send for AdaptiveChunking
impl Sync for AdaptiveChunking
impl Unpin for AdaptiveChunking
impl UnwindSafe for AdaptiveChunking
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