pub struct HighPerformanceBatchProcessor<T, R> { /* private fields */ }Expand description
High-performance batch processor with memory optimization
Implementations§
Source§impl<T, R> HighPerformanceBatchProcessor<T, R>
impl<T, R> HighPerformanceBatchProcessor<T, R>
Sourcepub fn new(
adaptive_config: AdaptiveBatchConfig,
parallel_config: ParallelConfig,
) -> Self
pub fn new( adaptive_config: AdaptiveBatchConfig, parallel_config: ParallelConfig, ) -> Self
Create new high-performance batch processor
Sourcepub fn process_adaptive<F>(
&mut self,
data: &[T],
processor: F,
) -> SklResult<Vec<R>>
pub fn process_adaptive<F>( &mut self, data: &[T], processor: F, ) -> SklResult<Vec<R>>
Process data with adaptive batching and memory optimization
Sourcepub fn memory_pool_stats(&self) -> ((usize, usize, f64), (usize, usize, f64))
pub fn memory_pool_stats(&self) -> ((usize, usize, f64), (usize, usize, f64))
Get memory pool statistics
Sourcepub fn stats(&self) -> &BatchStats
pub fn stats(&self) -> &BatchStats
Get processing statistics
Auto Trait Implementations§
impl<T, R> Freeze for HighPerformanceBatchProcessor<T, R>
impl<T, R> RefUnwindSafe for HighPerformanceBatchProcessor<T, R>where
T: RefUnwindSafe,
R: RefUnwindSafe,
impl<T, R> Send for HighPerformanceBatchProcessor<T, R>
impl<T, R> Sync for HighPerformanceBatchProcessor<T, R>
impl<T, R> Unpin for HighPerformanceBatchProcessor<T, R>
impl<T, R> UnwindSafe for HighPerformanceBatchProcessor<T, R>where
T: UnwindSafe,
R: UnwindSafe,
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