Commit b010b53
committed
Default queue_size to the concurrency n when not configured
With a fixed default of 10, running with a higher --n left most of the
thread pool idle (effective parallelism is min(n, queue_size)). An unset
queue_size now resolves to n at processing time, so the pool is never
starved by the default. An explicit config or constructor value still
takes precedence.1 parent 849ec67 commit b010b53
3 files changed
Lines changed: 28 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
403 | 403 | | |
404 | 404 | | |
405 | 405 | | |
406 | | - | |
| 406 | + | |
407 | 407 | | |
408 | 408 | | |
409 | 409 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
91 | 91 | | |
92 | 92 | | |
93 | 93 | | |
94 | | - | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
95 | 97 | | |
96 | 98 | | |
97 | 99 | | |
| |||
161 | 163 | | |
162 | 164 | | |
163 | 165 | | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
164 | 174 | | |
165 | 175 | | |
166 | 176 | | |
| |||
859 | 869 | | |
860 | 870 | | |
861 | 871 | | |
862 | | - | |
| 872 | + | |
863 | 873 | | |
864 | 874 | | |
865 | 875 | | |
| |||
1117 | 1127 | | |
1118 | 1128 | | |
1119 | 1129 | | |
1120 | | - | |
| 1130 | + | |
1121 | 1131 | | |
1122 | 1132 | | |
1123 | 1133 | | |
| |||
1278 | 1288 | | |
1279 | 1289 | | |
1280 | 1290 | | |
1281 | | - | |
| 1291 | + | |
1282 | 1292 | | |
1283 | 1293 | | |
1284 | 1294 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
43 | 43 | | |
44 | 44 | | |
45 | 45 | | |
46 | | - | |
| 46 | + | |
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
52 | 64 | | |
53 | 65 | | |
54 | 66 | | |
| |||
0 commit comments