Allow disabling all alpha optimizations

This commit is contained in:
Daniel Wong 2019-07-13 22:49:59 +10:00
parent 9408a50b1b
commit a78ae0d154

View file

@ -16,7 +16,10 @@ pub(crate) fn try_alpha_reductions(
alphas: &HashSet<AlphaOptim>,
eval: &Evaluator,
) {
assert!(!alphas.is_empty());
if alphas.is_empty() {
return;
}
let alphas = alphas.iter().collect::<Vec<_>>();
let alphas_iter = alphas.par_iter().with_max_len(1);
alphas_iter