MCPcopy Create free account
hub / github.com/cortex-js/compute-engine / getSequenceCache

Function getSequenceCache

src/compute-engine/sequence.ts:853–864  ·  view source on GitHub ↗
(
  ce: ComputeEngine,
  name: string
)

Source from the content-addressed store, hash-verified

851 if (read.count > MAX_TERMS_PER_READ) {
852 stopSequenceReads();
853 return false;
854 }
855 stack.push(indices);
856 read.pending.add(indexKeyOf(indices));
857 return true;
858 };
859 if (!push(root)) return undefined;
860 while (stack.length > 0) {
861 checkDeadline(engine._deadlineFrame);
862 const indices = stack[stack.length - 1];
863 const needed =
864 lowerTermToCompute(indices, read, engine, numericApproximation) ??
865 computeOneTerm(indices, read, engine, numericApproximation);
866 if (sequenceReadsStopped) return undefined;
867 if (needed !== undefined) {

Callers

nothing calls this directly

Calls 1

getMethod · 0.65

Tested by

no test coverage detected