-
Notifications
You must be signed in to change notification settings - Fork 326
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use `MutableIntMap` instead of `BTreeMap` for all maps and priority queues under `SystemState` with integer-like keys, making them virtually free to clone (something we do a lot during execution and certification) at the cost of up to 2x slower lookup and iteration, up to 3x slower insert and up to 5x slower remove. Also add a `MutableIntMap` tracking the count of callbacks per call context, to avoid `CallContextManager::outstanding_calls` iterating over the full list of callbacks every time.
- Loading branch information
1 parent
df21455
commit 69981dc
Showing
5 changed files
with
247 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.