pub struct ParallelEncodeConfig {
pub chunk_size: usize,
pub threads: Option<usize>,
}Expand description
Configuration for the parallel compression pipeline.
All fields have sensible defaults via Default; only override what you
need.
Fields§
§chunk_size: usizeNumber of tiles per rayon work chunk when using
compress_tiles_parallel.
Larger chunks reduce scheduling overhead but may cause load imbalance when tile sizes vary greatly. The default of 64 is a practical compromise for typical web-map tile archives.
Default: 64.
threads: Option<usize>Override the number of threads in the rayon pool used for compression.
When Some(n), a local rayon::ThreadPool with exactly n threads
is created and used only for the compression phase; the global pool is
not modified. When None, the global pool (whose size is determined by
rayon’s heuristics, typically the number of logical CPUs) is used.
Default: None (use global pool).
Trait Implementations§
Source§impl Clone for ParallelEncodeConfig
impl Clone for ParallelEncodeConfig
Source§fn clone(&self) -> ParallelEncodeConfig
fn clone(&self) -> ParallelEncodeConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ParallelEncodeConfig
impl Debug for ParallelEncodeConfig
Auto Trait Implementations§
impl Freeze for ParallelEncodeConfig
impl RefUnwindSafe for ParallelEncodeConfig
impl Send for ParallelEncodeConfig
impl Sync for ParallelEncodeConfig
impl Unpin for ParallelEncodeConfig
impl UnsafeUnpin for ParallelEncodeConfig
impl UnwindSafe for ParallelEncodeConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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>
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>
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