Skip to content

Conversation

@techy2
Copy link

@techy2 techy2 commented Feb 29, 2024

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

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant