We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It seems all rayon examples use something functional like .sum() or for_each with a function that can be executed in parallel.
.sum()
for_each
Sometimes I want to run a .map() in parallel for each item but consume the results sequentially with a for loop. Is there a way to do that?
.map()
I'm currently back to rolling my own with the threadpool crate.
The text was updated successfully, but these errors were encountered:
We don't have this in rayon yet -- #210.
In the meantime, you might like the par-map crate as an alternative.
par-map
Sorry, something went wrong.
Closing as a duplicate of #210 --thanks @kpcyrd !
Here is my solution: #1071
Now I think solution is https://crates.io/crates/pariter ( https://dpc.pw/adding-parallelism-to-your-rust-iterators )
No branches or pull requests
It seems all rayon examples use something functional like
.sum()
orfor_each
with a function that can be executed in parallel.Sometimes I want to run a
.map()
in parallel for each item but consume the results sequentially with a for loop. Is there a way to do that?I'm currently back to rolling my own with the threadpool crate.
The text was updated successfully, but these errors were encountered: