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

Function lcp_len

server/src/server/disk_prefix_cache.cpp:140–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

138 // lengths are not worth a probe.
139 if (prompt_len >= min_tokens) out.push_back(prompt_len);
140 for (auto it = boundaries.rbegin(); it != boundaries.rend(); ++it) {
141 if (*it >= min_tokens && *it < prompt_len) out.push_back(*it);
142 }
143 return out;
144}
145
146int disk_prefix_cache_fixed_boundary(const DiskPrefixCachePolicy & policy,
147 int full_len,
148 int min_tokens) {
149 if (policy.mode != DiskPrefixCacheMode::Fixed) return 0;

Callers 1

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected