Skip to content

Commit

Permalink
Reverse the dependency between Tracker and IndexSet & `CounterMap…
Browse files Browse the repository at this point in the history
…`. Enforce extensive tracking of index ref count for all `IndexSet` & `CounterMap` operations, including Clone and Drop.
  • Loading branch information
tiram88 committed Apr 11, 2024
1 parent d3be13b commit 778c634
Show file tree
Hide file tree
Showing 5 changed files with 163 additions and 135 deletions.
2 changes: 1 addition & 1 deletion notify/benches/bench.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fn create_addresses(count: usize) -> Vec<Address> {
fn create_and_fill_context(addresses: Vec<Address>) -> SubscriptionContext {
let context = SubscriptionContext::with_options(Some(ADDRESS_COUNT));
let mut indexes = Indexes::new(context.address_tracker.clone(), vec![]);
let _ = context.address_tracker.register(&mut indexes, addresses);
let _ = indexes.register(addresses);
context
}

Expand Down
Loading

0 comments on commit 778c634

Please sign in to comment.