-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: split lengthy fn(s) to improve concurrency
Primary changes are: 1. splits lengthy &mut self methods into read-only &self method(s) and faster &mut self method(s). This makes these methods more concurrency friendly. 2. provides original functionality with methods that have _atomic() suffix. These take &mut self and call both the &self and &mut self methods. 3. Adds ScopeDurationLogger to easily enable logging of slow methods. by default "slow" means > 0.1 seconds. Details: * log genesis block digest * rename GlobalState::set_new_tip() -> set_new_tip_atomic() * impl ScopeDurationLogger and use it to log method durations * split WalletState::update_wallet_state_with_new_block() * split ArchivalState::update_mutator_set() * add experimental GlobalStateLock::set_new_tip_concurrent() (not used) * split GlobalState::resync_membership_proofs() * remove duration_* macros * add fn_name, fn_name_bare macros
- Loading branch information
Showing
14 changed files
with
1,100 additions
and
572 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
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.