[][src]Module git_features::parallel

Run computations in parallel, or not based the parallel feature toggle.

Structs

EagerIter

Evaluate any iterator in their own thread.

Enums

EagerIterIf

An conditional EagerIter, which may become a just-in-time iterator running in the main thread depending on a condition.

Traits

Reducer

An trait for aggregating items into a single result.

Functions

in_parallel

Read items from input and consume them, producing an output to be collected by a reducer, whose task is to aggregate these outputs into the final result returned by this function.

in_parallel_if

Run in_parallel() only if the given condition() returns true when eagerly evaluated.

join

Runs left and right in parallel, returning their output when both are done.

optimize_chunk_size_and_thread_limit

Return the 'optimal' (size of chunks, amount of threads as Option, amount of threads) to use in in_parallel() for the given desired_chunk_size, num_items, thread_limit and available_threads.