Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix issue with high CPU usage. #158

Merged
merged 1 commit into from Nov 30, 2016

Conversation

denravonska
Copy link
Member

@denravonska denravonska commented Nov 30, 2016

Avoid copying the incoming std::map on each call. Also, try to reduce the number of interactions overall once the map's object has been retrieved.
This closes #140 (for real).

On my Core2Duo this dropped the idle CPU usage from 50-60% to 0.7%.

Avoid copying the incoming std::map on each call. Also, try to reduce the number of interactions overall once the map's object has been retrieved.
This closes gridcoin-community#140 (for real).
@gridcoin gridcoin merged commit 2ed693f into gridcoin-community:master Nov 30, 2016
@gridcoin
Copy link
Contributor

Testing on windows now! Thanks for the awesome work.

@denravonska
Copy link
Member Author

denravonska commented Dec 1, 2016

I do see some fairly high CPU usage (11%) even after this fix when the signing kicked in. I'll poke around to see where the rest of the cycles are used, but I suspect the scrypt is the culprit.

@denravonska denravonska deleted the cpu-usage-fix branch December 3, 2016 09:04
gridcoin added a commit that referenced this pull request Dec 31, 2016
Gridcoin Research 3.5.8.4/MSI=41.9
Leisure Upgrade

- Catch HTTP error on Diagnostics page
- Add checkpoints up to 770000
- Remove unused functions (cryptolottery, options trading)
- Merge in Denravonska #158 - CPU-Usage-Fix:  This fix prevents GRC from
copying memory structs and is designed to lower CPU usage
denravonska pushed a commit that referenced this pull request Apr 15, 2017
Gridcoin Research 3.5.8.4/MSI=41.9
Leisure Upgrade

- Catch HTTP error on Diagnostics page
- Add checkpoints up to 770000
- Remove unused functions (cryptolottery, options trading)
- Merge in Denravonska #158 - CPU-Usage-Fix:  This fix prevents GRC from
copying memory structs and is designed to lower CPU usage
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.

GRC Wallet using 80%+ of user's computer resources
2 participants