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

Tdigest #422

Merged
merged 3 commits into from
Feb 13, 2024
Merged

Tdigest #422

merged 3 commits into from
Feb 13, 2024

Conversation

AlexanderSaydakov
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Feb 6, 2024

Pull Request Test Coverage Report for Build 7893107470

Details

  • -16 of 93 (82.8%) changed or added relevant lines in 2 files are covered.
  • 2 unchanged lines in 1 file lost coverage.
  • Overall coverage decreased (-0.09%) to 98.699%

Changes Missing Coverage Covered Lines Changed/Added Lines %
tdigest/include/tdigest_impl.hpp 68 84 80.95%
Files with Coverage Reduction New Missed Lines %
tdigest/include/tdigest_impl.hpp 2 88.27%
Totals Coverage Status
Change from base Build 7715993625: -0.09%
Covered Lines: 16385
Relevant Lines: 16601

💛 - Coveralls

Copy link
Contributor

@jmalkin jmalkin left a comment

Choose a reason for hiding this comment

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

Requesting a few comments to clarify things, but otherwise ok. No need to re-review after adding those minor changes.

tdigest/include/tdigest_impl.hpp Show resolved Hide resolved
tdigest/include/tdigest_impl.hpp Show resolved Hide resolved
ptr += copy_from_mem(ptr, mean);
mean = byteswap(mean);
c = centroid(mean, static_cast<uint64_t>(weight));
total_weight += static_cast<uint64_t>(weight);
Copy link
Contributor

Choose a reason for hiding this comment

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

For stream deserialization weight was cast to uint64_t first which avoided casing the same value to the same type twice.

tdigest/include/tdigest_impl.hpp Show resolved Hide resolved
@AlexanderSaydakov AlexanderSaydakov merged commit fa0237a into master Feb 13, 2024
8 checks passed
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