buffer_proto5: parallelize a bit more

This commit is contained in:
2022-08-31 02:55:40 -07:00
parent 184997a701
commit 0a1452cb5c

View File

@@ -674,7 +674,7 @@ fn main() {
variants.len() / post_times.len(),
);
let mut geom_cache = SyncDiskCache::new_with_supplier(
let geom_cache = SyncDiskCache::new_with_supplier(
&format!("{}/.geom_cache", ensure_out_dir(i)),
|geom: &GeomParams| derive_geometries(geom.clone())
);
@@ -745,7 +745,7 @@ fn main() {
.0.wraps1;
let wraps2_choices: Vec<_> = (-120..120)
.into_iter()
.into_par_iter()
.filter_map(|wraps2| {
let params = GeomParams {
wraps2: (wraps2 * 4) as f32,