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

Function memoryAdaptiveCacheLimit

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

Source from the content-addressed store, hash-verified

300}
301
302function memoryAdaptiveCacheLimit(): number {
303 const total = getSystemTotalMb();
304 if (total < 4096) return 32;
305 if (total <= LOW_MEMORY_TOTAL_MB_THRESHOLD) return 64;
306 return DEFAULT_CONFIG.frameDataUriCacheLimit;
307}
308
309function memoryAdaptiveCacheBytesMb(): number {
310 const total = getSystemTotalMb();

Callers 1

resolveConfigFunction · 0.85

Calls 1

getSystemTotalMbFunction · 0.85

Tested by

no test coverage detected