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

CPC max serialized size bytes #222

Merged
merged 4 commits into from Jun 22, 2021
Merged

Conversation

AlexanderSaydakov
Copy link
Contributor

No description provided.

@coveralls
Copy link

coveralls commented Jun 16, 2021

Pull Request Test Coverage Report for Build 958299487

  • 5 of 5 (100.0%) changed or added relevant lines in 1 file are covered.
  • No unchanged relevant lines lost coverage.
  • Overall coverage increased (+0.009%) to 92.949%

Totals Coverage Status
Change from base Build 940608898: 0.009%
Covered Lines: 2162
Relevant Lines: 2326

💛 - Coveralls

template<typename A>
size_t cpc_sketch_alloc<A>::get_max_serialized_size_bytes(uint8_t lg_k) {
check_lg_k(lg_k);
if (lg_k <= 19) return CPC_EMPIRICAL_MAX_SIZE_BYTES[lg_k - 4] + 40;
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be clearer to use CPC_MIN_LG_K instead of 4. And should we define a preamble size constant?

@AlexanderSaydakov AlexanderSaydakov merged commit f17db17 into master Jun 22, 2021
@AlexanderSaydakov AlexanderSaydakov deleted the cpc_max_serialized_size branch June 22, 2021 18:01
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

4 participants