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
Whitespace adjustment and removal of some unused variables #24
Conversation
Do not allocate one BcDig per character of the string passed in. For ibase between 11 and 26 (decimal) more than one BcDig may be needed to store the value expressed by BC_BASE_DIGS characters. Testing for that case will probably cause more overhead than just applying a fudge factor (not verified - special casing the ibase range that needs this factor and using a factor of 1.5 instead of 2 might be worth the extra code complexity).
This change improves "make test" performance by more than 2%.
This implementation is not optimized for speed, yet. I have plans to add copy-on-write semantics for BcNums (i.e. add a reference count and copy the BcNum only if its refcount is > 1 it is about to be modified). This version fails in the bc/stdin test, but diagnosing this problem will have to wait for tomorrow ...
Beyond the changes performed by the automatic merge, remove references to the constvals field in struct BcFunc.
FreeBSD uses strict checks for base system components and the build failed due to the compiler warnings being treated as errors in base.
Codecov Report
@@ Coverage Diff @@
## master #24 +/- ##
==========================================
+ Coverage 99.73% 99.73% +<.01%
==========================================
Files 16 16
Lines 3431 3435 +4
==========================================
+ Hits 3422 3426 +4
Misses 9 9
Continue to review full report at Codecov.
|
I have already made these changes in my local branch. I just haven't pushed them yet. I will push them when I get home from work, and I will close this then to remind me. Thank you. |
Changes are pushed. |
I do not know how to restrict the pull request to just the two commits I consider relevant (probably is the GIT way to create a temporary branch for that purpose?)
The relevant commits are:
ca56e06
684e3f6