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

Function minRefsForPool

src/resolution/resolver-pool.ts:59–66  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

57 * CODEGRAPH_PARALLEL_RESOLVE_MIN=<refs> (0 forces the pool on).
58 */
59export 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

Callers 2

indexAllMethod · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected