MCPcopy Create free account
hub / github.com/DeusData/codebase-memory-mcp / count_cached_results

Function count_cached_results

tests/test_parallel.c:696–702  ·  view source on GitHub ↗

Mutator hook: runs between extraction and registry build, i.e. exactly where * the post-extraction phases start. Records how many results are still held * in memory there. */

Source from the content-addressed store, hash-verified

694 * the post-extraction phases start. Records how many results are still held
695 * in memory there. */
696static void count_cached_results(CBMFileResult **cache, int file_count, void *ud) {
697 int n = 0;
698 for (int i = 0; i < file_count; i++) {
699 n += cache[i] != NULL;
700 }
701 *(int *)ud = n;
702}
703
704/* #2184: spill was entered only DURING extraction, when the charge crossed
705 * budget - budget/16. A run that ended extraction just under that line kept

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected