Why is rust's rayon taking longer with Arc<Mutex<anyhow::Result<()>>>?
I am trying to parallelize my codes using the crate rayon. The process is to read a file, process it and output the processed file. I want to take note of the result of the processing of each file such that I have an Arc<Mutex<Vec<anyhow::Result<()>>>> which I lock and push each anyhow::Result<()> resulting from the… Read More Why is rust's rayon taking longer with Arc<Mutex<anyhow::Result<()>>>?