10. Parallel Computing
This week …
Sometimes, embarrassing is good. Like when a task is embarrassingly parallel.
Required Reading
- Charlie Gao, Hadley Wickham, Davis Vaughan, and Lionel Henry. 2025. “Parallel processing in purrr 1.1.0.” Tidyverse Blog, July 10.
This post introduces in_parallel(), the new way of running purrr’s map() functions in parallel, using mirai as the back end. It’s what we’ll use in class.
Examples
This week’s example runs a small bootstrap two times. The first run uses an ordinary map(). The second run uses in_parallel() with a set of mirai workers. The example also shows the most common error: a worker cannot find an object that you did not supply.