Commit 2582b33
committed
perf(runner): adaptive backoff in wait_for_job_slot poll loop
Replace fixed 50ms poll with stepped backoff (50ms -> 100ms after 4
iterations -> 200ms after 20) in src/runner.sh:15. Long-running parallel
tests no longer spawn `jobs -r | wc -l` 20 times per second per wait;
short tests keep the original responsiveness. Bash 3.0+ compatible.1 parent bcf5952 commit 2582b33
1 file changed
+11
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
25 | 29 | | |
26 | 30 | | |
27 | | - | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
28 | 38 | | |
29 | 39 | | |
30 | 40 | | |
| |||
0 commit comments