busstoptaktik / geodesy

Rust geodesy
Apache License 2.0
66 stars 6 forks source link

Reduce parallel processing boilerplate #20

Closed busstoptaktik closed 8 months ago

busstoptaktik commented 2 years ago

Model parallel processing after this example from the Rayon docs

// https://docs.rs/rayon/1.1.0/rayon/slice/trait.ParallelSliceMut.html
use rayon::prelude::*;
let mut array = [1, 2, 3, 4, 5];
array.par_chunks_mut(2)
     .for_each(|slice| slice.reverse());
assert_eq!(array, [2, 1, 4, 3, 5]);
busstoptaktik commented 8 months ago

This should be implemented as part of a separate "parallel" Context