(total: number, fullIndex: boolean)
| 89 | * themselves, which can read every source file. |
| 90 | */ |
| 91 | export function poolStartBeforeFirstBatch(total: number, fullIndex: boolean): 'up-front' | 'near-gate' | null { |
| 92 | if (total >= minRefsForPool()) return 'up-front'; |
| 93 | if (fullIndex && total >= nearGatePoolMin()) return 'near-gate'; |
| 94 | return null; |
| 95 | } |
| 96 | |
| 97 | /** |
| 98 | * Fewest refs still to settle for the batch loop to boot the pool mid-run |
no test coverage detected