()
| 57 | * CODEGRAPH_PARALLEL_RESOLVE_MIN=<refs> (0 forces the pool on). |
| 58 | */ |
| 59 | export function minRefsForPool(): number { |
| 60 | const raw = process.env.CODEGRAPH_PARALLEL_RESOLVE_MIN; |
| 61 | if (raw !== undefined) { |
| 62 | const parsed = Number.parseInt(raw, 10); |
| 63 | if (Number.isFinite(parsed) && parsed >= 0) return parsed; |
| 64 | } |
| 65 | return 150_000; |
| 66 | } |
| 67 | |
| 68 | /** |
| 69 | * Fewest refs still to settle for the batch loop to boot the pool mid-run |
no outgoing calls
no test coverage detected