Commit 72300fe
committed
examples/deepzoom: parallelize deepzoom_tile to available CPUs
On Python 3.13+, and on all Python versions on Linux, set the default job
count to the number of available CPUs. Otherwise, default to 4 jobs as
before.
Signed-off-by: Benjamin Gilbert <bgilbert@cs.cmu.edu>1 parent 803b409 commit 72300fe
1 file changed
+15
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
382 | 382 | | |
383 | 383 | | |
384 | 384 | | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
| 393 | + | |
| 394 | + | |
| 395 | + | |
| 396 | + | |
| 397 | + | |
385 | 398 | | |
386 | 399 | | |
387 | 400 | | |
| |||
433 | 446 | | |
434 | 447 | | |
435 | 448 | | |
436 | | - | |
437 | | - | |
| 449 | + | |
| 450 | + | |
438 | 451 | | |
439 | 452 | | |
440 | 453 | | |
| |||
0 commit comments