Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/clockworklabs/SpacetimeDB
/ new
Function
new
crates/data-structures/src/object_pool.rs:240–242 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
238
}
239
240
fn new() -> P {
241
P::new(100)
242
}
243
244
fn assert_metrics(pool: &P, dropped: usize, new: usize, reused: usize, returned: usize) {
245
assert_eq!(pool.dropped_count(), dropped);
Callers
15
from
Method · 0.70
default
Method · 0.70
new
Method · 0.70
insert_returns_old_inner
Function · 0.70
mutation_via_get_mut_inner
Function · 0.70
mutation_via_get_or_insert_inner
Function · 0.70
insert_get_remove_inner
Function · 0.70
new
Method · 0.70
take
Method · 0.70
take
Function · 0.70
pool_returns_same_obj
Function · 0.70
pool_drops_past_max_size
Function · 0.70
Calls
no outgoing calls
Tested by
14
pool_returns_same_obj
Function · 0.56
pool_drops_past_max_size
Function · 0.56
test_index_ids_are_unique
Function · 0.40
test_constraint_ids_are_unique
Function · 0.40
test_sequence_ids_are_unique
Function · 0.40
test_alter_table_row_type_is_transactional
Function · 0.40
test_event_table_replay_ignores_inserts
Function · 0.40
test_fixup_deletes_orphaned_st_event_table_rows
Function · 0.40
run
Function · 0.40
local_durability_crashes_on_resume_with_insuffient_space
Function · 0.40
txdata
Function · 0.40
create
Method · 0.40