pub struct GreedyScheduler(_);
Expand description

GreedyScheduler is the recommend scheduler for Tange-Core. After computing the DAG from the Graph, it uses a priority heap to determine which task to execute next, biasing toward reduction. That is, joins are preferred over an apply since it reduces the number of thunks by one. Inputs are preferred last.

Implementations§

Creates a new GreedyScheduler with the default number of threads.

Sets the number of threads to use. By default, uses one thread per core.

Trait Implementations§

Compute the given Graph, returning the value.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.