(I’m Hadley Wickham, Chief Scientist at Posit and I’m posting this for my colleague Charlie Gao (u/shikokuchuo) who doesn't have enough karma to post here 🤣).
Resampling (bootstrap, cross-validation, ...) is a common part of modelling that takes a long time and in principle should be trivially parallelisable. Unfortunately, in reality the speedup is usually well short of the allocated cores. The reason is how the process pool has to distribute work: each task is serialized, copied through a socket then deserialized on the other side, and each result has to come back the same way. This has two problems: when tasks are small the overhead can exceed the computation, and when the data is large every worker holding a copy exhausts memory.
Charlie has come up with a new solution using shared memory. pymizu (Python) and mizu (R) use shared memory to parallelise work. The data for each task is written once into memory that the scheduler and worker share, so the worker reads it without copying. Compared to using sockets (the current fastest approach) a round trip drops from about 100 µs to under 1 µs (measured on an Apple M4 Pro). And this makes a difference for data science workflows: four typical tidymodels workloads chosen to stress data movement relative to compute, 12 mizu workers gave 6.7–8.1x speedups versus 1.4–6.4x for mirai, already the most performant parallel framework in R.
In Python, pymizu is a drop-in replace for theconcurrent.futuresexecutor, and NumPy arrays and polars/pyarrow/pandas frames cross between processes without any copies. pymizu and mizu are designed to work together for cross-language workflows. Each can launch workers in either language, so a data frame in an R session can cross to a Python worker as an Arrow-backed frame, and the polars result comes back as an R data frame.
More details, benchmarks, and examples are available at: https://opensource.posit.co/blog/2026-11-05_mizu-0-1-0/ or get started with
pip install pymizu / install.packages("mizu").