MCPcopy Create free account
hub / github.com/Niko1221/Strata / cache_complement_blob_or_fallback

Function cache_complement_blob_or_fallback

engine/src/core/expert_source.cpp:293–299  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

291}
292
293const uint8_t* cache_complement_blob_or_fallback(
294 size_t index, const std::vector<uint64_t>& offsets, const uint8_t* complement_host,
295 const uint8_t* mapped_fallback) {
296 if (complement_host != nullptr && index < offsets.size() && offsets[index] != kNoCacheComplement)
297 return complement_host + (size_t) offsets[index];
298 return mapped_fallback;
299}
300
301int64_t choose_resident_keep_from(const std::vector<uint64_t>& slot_bytes, uint64_t base_bytes, uint64_t budget,
302 int64_t lend_from) {

Callers 2

resident_blobMethod · 0.70
test_complement_planFunction · 0.50

Calls 1

sizeMethod · 0.45

Tested by 1

test_complement_planFunction · 0.40