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

Function cbm_registry_resolve_cache_begin

src/pipeline/registry.c:288–297  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

286}
287
288void cbm_registry_resolve_cache_begin(int estimated_capacity) {
289 if (_resolve_cache) {
290 cbm_ht_foreach(_resolve_cache, resolve_cache_free_entry, NULL);
291 cbm_ht_free(_resolve_cache);
292 _resolve_cache = NULL;
293 }
294 if (estimated_capacity < 32)
295 estimated_capacity = 32;
296 _resolve_cache = cbm_ht_create((uint32_t)estimated_capacity);
297}
298
299void cbm_registry_resolve_cache_end(void) {
300 if (!_resolve_cache)

Callers 1

resolve_workerFunction · 0.85

Calls 3

cbm_ht_foreachFunction · 0.85
cbm_ht_freeFunction · 0.85
cbm_ht_createFunction · 0.85

Tested by

no test coverage detected