Commit 12194b5
committed
prosopopee: allow selecting number of threads used for thumbnail generation
Generating thumbnails is done in parallel threads via
multiprocessing.Pool. By default, Pool schedules tasks on as many
threads as there are cpu threads on the host machine.
Let's allow users to select the number of threads Pool can use.
Signed-off-by: Quentin Schulz <foss@0leil.net>1 parent 75b93aa commit 12194b5
1 file changed
Lines changed: 15 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
51 | 59 | | |
52 | 60 | | |
53 | 61 | | |
| |||
923 | 931 | | |
924 | 932 | | |
925 | 933 | | |
926 | | - | |
| 934 | + | |
| 935 | + | |
| 936 | + | |
| 937 | + | |
| 938 | + | |
| 939 | + | |
927 | 940 | | |
928 | 941 | | |
929 | 942 | | |
| |||
0 commit comments