Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Map ¶
Runs the map function parallelized over the values in the input iterator. It does batching to reduce scheduler and channel overhead. Inspired by Rust's rayon's par_iter. It does not do dynamic chunk sizing (yet). You must completely consume the output iterator.
func MapOpt ¶
func MapOpt[T, O any, WorkerState any]( opts MapOpts, iter iter.Seq[T], f func(T, *WorkerState) O, ) iter.Seq[O]
Runs the map function parallelized over the values in the input iterator. It does batching to reduce scheduler and channel overhead. Inspired by Rust's rayon's par_iter. It does not do dynamic chunk sizing (yet). You must completely consume the output iterator.
Types ¶
Click to show internal directories.
Click to hide internal directories.