improve TIP following cpu usage, upgrade to boost.1.84#2
Open
techy2 wants to merge 1 commit intodecenomy:masterfrom
Open
improve TIP following cpu usage, upgrade to boost.1.84#2techy2 wants to merge 1 commit intodecenomy:masterfrom
techy2 wants to merge 1 commit intodecenomy:masterfrom
Conversation
problem: qt daemon uses significant cpu resources while following the tip. solution: update /depends/ boost library to 1.84 change main.h typedef BlockMap ... mapBlockIndex from std::unordered_map to boost::unordered_map to take advantage of reduced cpu usage during "tip" following. see benchmark info: https://www.boost.org/doc/libs/develop/libs/unordered/doc/html/unordered.html#buckets_benchmarks https://medium.com/@pavel.odintsov/boost-unordered-map-is-a-new-king-of-data-structures-292124d3ee2
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
problem: qt daemon uses significant cpu resources while following the tip.
solution: update /depends/ boost library to 1.84 to take advantage of new Boost.Unordered improvements
observed improvement on 3.6 ghz Xeon 12 real (24 virtual) core processor
BEFORE: periods of 15 - 30 minutes with 100% of a single virtual core in use, GUI unresponsive for minutes at a time
AFTER: a few seconds of <35-58% cpu utilization occasionally
change main.h
typedef BlockMap ... mapBlockIndex
from std::unordered_map to boost::unordered_map
to take advantage of reduced cpu usage during "tip" following.
see benchmark info:
https://www.boost.org/doc/libs/develop/libs/unordered/doc/html/unordered.html#buckets_benchmarks
https://medium.com/@pavel.odintsov/boost-unordered-map-is-a-new-king-of-data-structures-292124d3ee2