Rayon multiple par_iter one after the other

I was wondering how rayon handles multiple parallel iterators one after the other, just to clarify:


Are new threads being launched everytime?, and if so, is there a way to tell rayon to maintain a thread pool on standby without having to resort to other methods in order to do work in parallel? (i.e. I would prefer to retain the simple syntax of several parallel iterators)

Rayon does keep a global thread pool, initialized on first use.

1 Like

That's perfect!, Thanks for the quick response

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.