Merge branch 'master' into interlacing-fixes

This commit is contained in:
Josh Holmer 2019-07-23 14:25:08 -04:00 committed by GitHub
commit 8b70273121
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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