Expand description
Parallel page-processing utilities.
On native targets: uses rayon for data parallelism. On wasm32: falls back to sequential iteration.
Provides helpers that apply a per-page transformation in parallel across all
pages of a document. Designed as a drop-in replacement for the sequential
for page in &mut pages { ... } loops in the orchestrator.
Functions§
- configure_
thread_ pool - Configure the global rayon thread pool with the given number of threads.
- par_
extract - Parallel fold — map each page to a value of type
Tand collect results. - par_
map_ pages - Apply
opto each page in parallel, replacing each page’s content. - par_
map_ pages_ indexed - Apply
opto each page in parallel where the closure also receives a zero-based page index.