From 145b369d7b5c0036dbe5db219b6f44bd41ac6e1a Mon Sep 17 00:00:00 2001 From: Matt Jones Date: Sun, 24 Mar 2024 23:02:22 -0700 Subject: [PATCH] Comment out conc.futures section that is failing. --- sections/parallel-programming.qmd | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/sections/parallel-programming.qmd b/sections/parallel-programming.qmd index 1a8b70b..6bba8ad 100644 --- a/sections/parallel-programming.qmd +++ b/sections/parallel-programming.qmd @@ -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 @@ -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)