File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -373,8 +373,10 @@ Adaptive by itself does not implement a way of sharing partial results between f
373
373
Its implementation of parallel computation using executors is minimal by design.
374
374
Instead the appropriate way to implement custom parallelization is by using coroutines (asynchronous functions).
375
375
376
- We illustrate this approach by using ` dask.distributed ` for parallel computations in part because it supports asynchronous operation out-of-the-box.
377
- Let us consider the computation below which has a slow but reusable part, and a fast part that cannot be reused.
376
+ We illustrate this approach by using dask.distributed for parallel computations in part because it supports asynchronous operation out-of-the-box.
377
+ Let us consider a function ` f(x) ` which is composed by two parts.
378
+ It has a slow part ` g ` which can be reused by multiple inputs and shared between workers.
379
+ It has fast part ` h ` that will be computed for every ` x ` .
378
380
379
381
``` {code-cell} ipython3
380
382
import time
You can’t perform that action at this time.
0 commit comments