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

Function resolveLowMemoryMode

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

Source from the content-addressed store, hash-verified

343 };
344 // Tri-state: explicit on/off via env, otherwise auto-detect from total RAM.
345 const resolveLowMemoryMode = (): boolean => {
346 const raw = env("PRODUCER_LOW_MEMORY_MODE")?.toLowerCase();
347 if (raw === "true" || raw === "on" || raw === "1") return true;
348 if (raw === "false" || raw === "off" || raw === "0") return false;
349 return isLowMemorySystem();
350 };
351 // Opt-OUT: default ON, disabled only by an explicit falsey value.
352 const resolveStaticFrameDedup = (): boolean => {
353 const raw = env("HF_STATIC_DEDUP")?.trim().toLowerCase();

Callers 1

resolveConfigFunction · 0.85

Calls 2

envFunction · 0.85
isLowMemorySystemFunction · 0.85

Tested by

no test coverage detected