pub struct ParallelChunker { /* private fields */ }Expand description
Parallel chunker for high-performance file processing
Implementations§
Source§impl ParallelChunker
impl ParallelChunker
Sourcepub fn with_config(config: ParallelChunkingConfig) -> Self
pub fn with_config(config: ParallelChunkingConfig) -> Self
Create a parallel chunker with custom configuration
Sourcepub fn chunk_parallel(&self, data: &[u8]) -> Result<ParallelChunkingResult>
pub fn chunk_parallel(&self, data: &[u8]) -> Result<ParallelChunkingResult>
Chunk data in parallel
This splits the data into chunks and processes them concurrently using Rayon. For small files (< 1MB), sequential chunking is more efficient.
Sourcepub fn chunk_files_parallel(
&self,
files: &[Vec<u8>],
) -> Result<Vec<ParallelChunkingResult>>
pub fn chunk_files_parallel( &self, files: &[Vec<u8>], ) -> Result<Vec<ParallelChunkingResult>>
Process multiple files in parallel
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ParallelChunker
impl RefUnwindSafe for ParallelChunker
impl Send for ParallelChunker
impl Sync for ParallelChunker
impl Unpin for ParallelChunker
impl UnwindSafe for ParallelChunker
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