MCPcopy Create free account
hub / github.com/Luce-Org/lucebox-hub / stats

Method stats

server/src/server/prefix_cache.cpp:465–470  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

463
464 if (best_idx >= 0 && record_hit)
465 record_inline_hit(best_slot, best_len, prompt_ids.size());
466 return {best_slot, best_len};
467}
468
469void PrefixCache::record_inline_hit(
470 int slot, int prefix_len, size_t prompt_len) {
471 for (int i = 0; i < (int)entries_.size(); ++i) {
472 if (entries_[(size_t)i].slot != slot ||
473 (int)entries_[(size_t)i].ids.size() != prefix_len) continue;

Callers 2

mainFunction · 0.45
build_props_bodyFunction · 0.45

Calls

no outgoing calls

Tested by 1

mainFunction · 0.36