pub struct ParallelConfig {
pub num_lanes: Option<usize>,
pub work_stealing: bool,
}Expand description
Configuration for lane-partitioned parallel decompression.
Controls how chunks are distributed across threads during parallel reads. The lane partitioning scheme assigns each thread a deterministic, disjoint subset of chunks — no locks or coordination needed at runtime.
Fields§
§num_lanes: Option<usize>Number of parallel lanes (threads). None = auto-detect from
available CPU cores.
work_stealing: boolEnable work-stealing rebalancing. When true, the partitioner
redistributes excess items from overloaded lanes to underloaded ones
so that no lane differs by more than 1 chunk. Default: true.
Implementations§
Source§impl ParallelConfig
impl ParallelConfig
Sourcepub fn with_lanes(num_lanes: usize) -> Self
pub fn with_lanes(num_lanes: usize) -> Self
Create a config with explicit lane count and work-stealing on.
Trait Implementations§
Source§impl Clone for ParallelConfig
impl Clone for ParallelConfig
Source§fn clone(&self) -> ParallelConfig
fn clone(&self) -> ParallelConfig
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 ParallelConfig
impl Debug for ParallelConfig
Auto Trait Implementations§
impl Freeze for ParallelConfig
impl RefUnwindSafe for ParallelConfig
impl Send for ParallelConfig
impl Sync for ParallelConfig
impl Unpin for ParallelConfig
impl UnsafeUnpin for ParallelConfig
impl UnwindSafe for ParallelConfig
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