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

Function size

__tests__/resolver-pool-sizing.test.ts:28–35  ·  view source on GitHub ↗
(opts: Partial<Parameters<typeof ResolverPool.resolvePoolSize>[0]>)

Source from the content-addressed store, hash-verified

26const MB = 1024 * 1024;
27
28function size(opts: Partial<Parameters<typeof ResolverPool.resolvePoolSize>[0]>): number | null {
29 return ResolverPool.resolvePoolSize({
30 availableParallelism: 8,
31 memoryBudget: 16 * GB,
32 dbSizeBytes: 200 * MB,
33 ...opts,
34 });
35}
36
37describe('ResolverPool.resolvePoolSize', () => {
38 it('big dev box: no more workers than the main thread can keep busy, whatever the core count', () => {

Callers 1

Calls 1

resolvePoolSizeMethod · 0.80

Tested by

no test coverage detected