Skip to content

Commit 641d4a3

Browse files
Juan Daniel TorresJuan Daniel Torres
Juan Daniel Torres
authored and
Juan Daniel Torres
committed
update tutorial explanation about f
1 parent 8ffc82e commit 641d4a3

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

docs/source/tutorial/tutorial.advanced-topics.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,10 @@ Adaptive by itself does not implement a way of sharing partial results between f
373373
Its implementation of parallel computation using executors is minimal by design.
374374
Instead the appropriate way to implement custom parallelization is by using coroutines (asynchronous functions).
375375

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`.
378380

379381
```{code-cell} ipython3
380382
import time

0 commit comments

Comments
 (0)