MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / num_non_collisions

Method num_non_collisions

crates/table/src/pointer_map.rs:180–182  ·  view source on GitHub ↗

The number hashes that do not collide.

(&self)

Source from the content-addressed store, hash-verified

178
179 /// The number hashes that do not collide.
180 pub fn num_non_collisions(&self) -> usize {
181 self.map.len() - (self.colliders.len() - self.emptied_collider_slots.len())
182 }
183
184 /// The number of pointers in the map. This is equal to the number of non-colliding hashes
185 /// plus the number of colliding hashes.

Callers 1

lenMethod · 0.80

Calls 1

lenMethod · 0.45

Tested by

no test coverage detected