Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge #6474: perf: NodesSnapshot, do not hold m_nodes_mutex while shu…
…ffling c005011 perf: NodesSnapshot, do not hold m_nodes_mutex while shuffling (pasta) Pull request description: ## Issue being fixed or feature implemented Upstream, as expected, only holds m_nodes_mutex while needed. We hold it a bit too long https://github.com/bitcoin/bitcoin/blob/36f5effa1783a72d57c393588059a688068336e2/src/net.h#L1628-L1640 Not sure how this got introduced. I also don't expect this to be a major contention savior, as there is only one instance in ThreadMessageHandler where we actually do shuffle, but still, might as well fix. ## What was done? ## How Has This Been Tested? builds ## Breaking Changes None ## Checklist: _Go over all the following points, and put an `x` in all the boxes that apply._ - [ ] I have performed a self-review of my own code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have added or updated relevant unit/integration/functional/e2e tests - [ ] I have made corresponding changes to the documentation - [x] I have assigned this pull request to a milestone _(for repository code-owners and collaborators only)_ ACKs for top commit: kwvg: utACK c005011 UdjinM6: utACK c005011 Tree-SHA512: 76a848ace9a746c851e0fc1f66def92d67da92e9f295b7aade5a23f7d76b3eb3c28b7a6ac9d04df6dc252c1f1d9fae364821e9416a1f003a2905a30fc51eb41f
- Loading branch information