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

Method find_primary_hash

perro_source/core/perro_csv/src/lib.rs:171–174  ·  view source on GitHub ↗
(&self, key_hash: u64)

Source from the content-addressed store, hash-verified

169 let name_hash = perro_ids::string_to_u64(name);
170 self.headers
171 .iter()
172 .position(|cell| cell.hash == name_hash && cell.text == name)
173 }
174
175 /// Returns the first header with `name_hash`.
176 ///
177 /// Hash-only lookups cannot distinguish collisions. Use [`Self::header_index`] when the

Callers 3

huge_csv_benchFunction · 0.80
find_primaryMethod · 0.80
find_hashMethod · 0.80

Calls 2

primary_lookupMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected