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

decimal: Remove unnecessary allocation in bankers round chop #2030

Merged
merged 1 commit into from
Aug 15, 2018

Conversation

ValarDragon
Copy link
Contributor

@ValarDragon ValarDragon commented Aug 15, 2018

This is done by making the function mutative. A non-mutative variant
is created for functions that depend on it being non-mutative.

Needs rebase once #2029 is merged. (That build error is still present in LCD tests, these tests pass once that is included) Rebased

No changelog entry required imo, since big decimal is new to this release.


For Admin Use:

  • Added appropriate labels to PR (ex. wip, ready-for-review, docs)
  • Reviewers Assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

This is done by making the function mutative. A non-mutative variant
is created for functions that depend on it being non-mutative.
@ValarDragon ValarDragon force-pushed the dev/remove_bigdec_alloc branch from ce5d51a to b991a5a Compare August 15, 2018 01:12
@codecov
Copy link

codecov bot commented Aug 15, 2018

Codecov Report

Merging #2030 into develop will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff            @@
##           develop    #2030   +/-   ##
========================================
  Coverage    64.86%   64.86%           
========================================
  Files          115      115           
  Lines         6862     6862           
========================================
  Hits          4451     4451           
  Misses        2127     2127           
  Partials       284      284

Copy link
Contributor

@rigelrozanski rigelrozanski 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 thanks!

@rigelrozanski rigelrozanski merged commit d37de06 into develop Aug 15, 2018
@rigelrozanski rigelrozanski deleted the dev/remove_bigdec_alloc branch August 15, 2018 01:49
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.

2 participants