O'Reilly logo
  • Ivan Zderadicka thinks this is interesting:

We use a scope to spawn the two cases in parallel and collect their results.

From

Cover of Network Programming with Rust

Note

This is not true - it's always if-else so only one case is running - this means that rayon version is always slower due to rayon overhead.