Struct tange::scheduler::GreedyScheduler
source · 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§
source§impl GreedyScheduler
impl GreedyScheduler
sourcepub fn set_threads(&mut self, n_threads: usize)
pub fn set_threads(&mut self, n_threads: usize)
Sets the number of threads to use. By default, uses one thread per core.