boydjohnson / examples-multithreading-distributed-programming

Example code implementing ideas from Foundations of Multithreading, Paralllel and Distributed Programming
4 stars 1 forks source link

rayon collect() preserves the original order #1

Open claudiofsr opened 1 year ago

claudiofsr commented 1 year ago

I see:

https://boydjohnson.dev/blog/concurrency-matrix-multiplication/

Note that rayon collect() preserves the original order. Thus, it is not necessary to use par_sort_by().

See https://dev.to/eblocha/parallel-matrix-multiplication-in-rust-39f6

Excuse me if I'm mistaken!

boydjohnson commented 1 year ago

@claudiofsr I have found that you are right. I'm not sure what I was thinking. I'll update the code and post.