MCPcopy Create free account
hub / github.com/Rustixir/darkbird / gets

Method gets

src/darkbird/storage_vector.rs:162–172  ·  view source on GitHub ↗
(&self, list: Vec<VectorId>)

Source from the content-addressed store, hash-verified

160 /// gets documents
161 #[inline]
162 pub fn gets(&self, list: Vec<VectorId>) -> Vec<(VectorId, Vector)> {
163 let mut result = Vec::with_capacity(list.len());
164
165 list.iter().for_each(|vid| {
166 if let Some(r) = self.vcache.get(vid) {
167 result.push((r.key().clone(), r.value().clone()));
168 }
169 });
170
171 result
172 }
173
174 /// lookup by vector_id
175 #[inline]

Callers

nothing calls this directly

Calls 3

lenMethod · 0.80
iterMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected