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

Method abort_inline_snap

server/src/server/prefix_cache.cpp:332–342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

330
331 if (best_idx >= 0) {
332 move_to_end(best_idx);
333 lifetime_hits_.fetch_add(1, std::memory_order_relaxed);
334 std::fprintf(stderr, "[pc] lookup hit slot=%d prefix_len=%d (of %zu total)\n",
335 best_slot, best_len, prompt_ids.size());
336 }
337 return {best_slot, best_len};
338}
339
340std::pair<int, int> PrefixCache::prepare_inline_snap(
341 const std::vector<int32_t> & prompt_ids,
342 int restored_prefix_len,
343 bool prefer_tools_boundary,
344 int forced_cut) {
345 if (disabled_) return {-1, 0};

Callers 1

worker_loopMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected