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

Optimize cdbl #692

Merged
merged 5 commits into from
Oct 22, 2017
Merged

Conversation

denravonska
Copy link
Member

Replace cdbl implementation with atof+round and move it to util as RoundFromString.

I checked 22 million cdbl calls while syncing and none of them required cleaning. The new implementation uses 18% of the execution time compared to the old one. This is negligleble on modern hardware, but an old Raspbeery Pi should see a greater boost.

@tomasbrod
Copy link
Member

tomasbrod commented Oct 12, 2017

  • Make sure it does not throw exceptions on invalid input

@denravonska
Copy link
Member Author

atof does not throw :)

Copy link
Member

@iFoggz iFoggz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks good, glad to be moving more to a formal more efficient means. let push this for testing

I checked 22 million cdbl calls while syncing and none of them required
cleaning. The new implementation uses 18% of the execution time compared
to the old one. This is negligleble on modern hardware, but an old
Raspbeery Pi should see a greater boost.
@denravonska denravonska merged commit 56731cb into gridcoin-community:development Oct 22, 2017
@denravonska denravonska deleted the optimize-cdbl branch July 14, 2021 06:05
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.

None yet

3 participants