Skip to content

Commit

Permalink
Comment out conc.futures section that is failing.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbjones committed Mar 25, 2024
1 parent 9e87419 commit 145b369
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sections/parallel-programming.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,8 @@ This execution took about :tada: *4 seconds* :tada:, which is about 6.25x faster
But you may have also seen the thread pool wasn't much faster at all. In that case, you may be encountering the python Global Interpreter Lock (GIL), and would be better off with using parallel processes. Let's do that with `ProcessPoolExecutor`.

```{python}
#| eval: false
from concurrent.futures import ProcessPoolExecutor
@timethis
Expand Down Expand Up @@ -524,7 +526,7 @@ for x in range(0,10):
all_futures.append(future)
print(future)
time.sleep(2)
time.sleep(3)
for future in all_futures:
print("Checking: ", future)
Expand Down

0 comments on commit 145b369

Please sign in to comment.