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

Function workersWorthStarting

src/extraction/parse-pool.ts:138–140  ·  view source on GitHub ↗
(parseMs: number, maxSize: number)

Source from the content-addressed store, hash-verified

136 * and memory.
137 */
138export function workersWorthStarting(parseMs: number, maxSize: number): number {
139 return Math.max(1, Math.min(maxSize, Math.ceil(Math.sqrt(parseMs / WORKER_WORTH_MS))));
140}
141
142/**
143 * How many files a worker may run ahead of the ordered commit. Once the window

Callers 2

parse-pool.test.tsFile · 0.90
wantedSizeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected