MCPcopy Create free account
hub / github.com/PerroEngine/Perro / bench_key

Function bench_key

perro_source/io_stack/perro_io/build.rs:55–60  ·  view source on GitHub ↗
(index: u64)

Source from the content-addressed store, hash-verified

53
54 code.push_str(&format!(
55 "#[inline(never)]\nfn match_lookup_{size}(key: u64) -> Option<u32> {{\n match key {{\n"
56 ));
57 for index in 0..size {
58 let key = bench_key(index as u64);
59 code.push_str(&format!(" {key:#018x} => Some({index}),\n"));
60 }
61 code.push_str(" _ => None,\n }\n}\n\n");
62
63 code.push_str(&format!(

Callers 1

generated_codeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected