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

Slightly speed up printing for the obase!=10 case #19

Closed
wants to merge 1 commit into from

Conversation

stesser
Copy link
Contributor

@stesser stesser commented May 20, 2019

In the last iteration of the per BcDig print loop, "acc" is known to be less than "pow", therefore the last div and mod operations can be skipped, resulting in a speed-up of about 2% in my tests.

…mod per BcDig

In the last iteration of the per BcDig print loop, acc is known to be less than
pow, therefore the last div and mod operations can be skipped, resulting in a
speed-up of about 2% in my tests.
@codecov
Copy link

codecov bot commented May 20, 2019

Codecov Report

Merging #19 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #19      +/-   ##
==========================================
+ Coverage   99.88%   99.88%   +<.01%     
==========================================
  Files          16       16              
  Lines        3409     3411       +2     
==========================================
+ Hits         3405     3407       +2     
  Misses          4        4
Impacted Files Coverage Δ
src/num.c 99.8% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update e318529...b2c2fe4. Read the comment docs.

@gavinhoward
Copy link
Owner

Oh whoops. I did not notice this PR; I merged in the patch instead, though I did list you as the author of the commit. I hope that is okay.

Closing since the code is already merged.

@stesser stesser deleted the d9 branch June 2, 2019 10:54
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

2 participants