MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / shouldEngageAdaptively

Function shouldEngageAdaptively

src/resolution/resolver-pool.ts:81–83  ·  view source on GitHub ↗
(projectedMs: number, remainingRefs: number, barMs: number)

Source from the content-addressed store, hash-verified

79
80/** Whether the resolve loop should boot the pool mid-run (see ADAPTIVE_ENGAGE_MIN_REFS). */
81export function shouldEngageAdaptively(projectedMs: number, remainingRefs: number, barMs: number): boolean {
82 return remainingRefs >= ADAPTIVE_ENGAGE_MIN_REFS && projectedMs >= barMs;
83}
84
85/**
86 * The most workers a run takes, however large the project. The main thread saves

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected