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

Method len

crates/table/src/pointer_map.rs:186–188  ·  view source on GitHub ↗

The number of pointers in the map. This is equal to the number of non-colliding hashes plus the number of colliding hashes.

(&self)

Source from the content-addressed store, hash-verified

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.
186 pub fn len(&self) -> usize {
187 self.num_collisions() + self.num_non_collisions()
188 }
189
190 /// Returns true if there are no pointers in the map.
191 pub fn is_empty(&self) -> bool {

Callers 15

rows_per_pageFunction · 0.45
var_len_rows_per_pageFunction · 0.45
bench_insert_with_holesFunction · 0.45
rows_per_pageFunction · 0.45
var_len_rows_per_pageFunction · 0.45
insert_opt_strFunction · 0.45
write_productMethod · 0.45
put_sliceMethod · 0.45
traverse_avFunction · 0.45
num_collisionsMethod · 0.45
num_non_collisionsMethod · 0.45
insertMethod · 0.45

Calls 2

num_collisionsMethod · 0.80
num_non_collisionsMethod · 0.80

Tested by 2

read_log_skip_repeatingFunction · 0.36
_run_bench_dbFunction · 0.36