MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / memoryAdaptiveCacheBytesMb

Function memoryAdaptiveCacheBytesMb

packages/engine/src/config.ts:309–314  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

307}
308
309function memoryAdaptiveCacheBytesMb(): number {
310 const total = getSystemTotalMb();
311 if (total < 4096) return 128;
312 if (total <= LOW_MEMORY_TOTAL_MB_THRESHOLD) return 256;
313 return DEFAULT_CONFIG.frameDataUriCacheBytesLimitMb;
314}
315
316/**
317 * Resolve configuration by merging: defaults ← env vars ← explicit overrides.

Callers 1

resolveConfigFunction · 0.85

Calls 1

getSystemTotalMbFunction · 0.85

Tested by

no test coverage detected