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

Getting rid of some glue code #7748

Merged
merged 1 commit into from
May 30, 2024
Merged

Getting rid of some glue code #7748

merged 1 commit into from
May 30, 2024

Conversation

jedelbo
Copy link
Contributor

@jedelbo jedelbo commented May 29, 2024

What, How & Why?

☑️ ToDos

  • 📝 Changelog update
  • 🚦 Tests (or not relevant)
  • C-API, if public C++ API changed
  • bindgen/spec.yml, if public C++ API changed

Copy link
Member

@nicola-cab nicola-cab 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 to me, just small comments..

result |= second_word << first_word_size;
// note: above shifts in zeroes below the bits we want
}
_bump(num_bits);
return result;
}
uint64_t get_with_unsafe_prefetch(size_t num_bits)
Copy link
Member

Choose a reason for hiding this comment

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

You are now fetching and moving the iterator in this method, probably we should rename it? Even though, I don't expect anybody to use the iterator. Although, it can be useful if we want to access the data directly.

@@ -710,11 +593,9 @@ size_t parallel_subword_find(VectorCompare vector_compare, const uint64_t* data,
while (total_bit_count_left >= fast_scan_limit) {
// unrolling 2x
const auto word0 = it.get_with_unsafe_prefetch(bit_count_pr_iteration);
it.bump(bit_count_pr_iteration);
const auto word1 = it.get_with_unsafe_prefetch(bit_count_pr_iteration);
Copy link
Member

Choose a reason for hiding this comment

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

I think renaming the method will make it clear that it has been moved by bit_count_pr_iterations bits.

Copy link

coveralls-official bot commented May 29, 2024

Pull Request Test Coverage Report for Build jorgen.edelbo_277

Details

  • 47 of 73 (64.38%) changed or added relevant lines in 5 files are covered.
  • 48 unchanged lines in 8 files lost coverage.
  • Overall coverage increased (+0.4%) to 90.618%

Changes Missing Coverage Covered Lines Changed/Added Lines %
src/realm/integer_flex_compressor.hpp 2 4 50.0%
src/realm/query_conditions.hpp 22 46 47.83%
Files with Coverage Reduction New Missed Lines %
src/realm/index_string.cpp 1 84.63%
src/realm/query_expression.hpp 1 93.81%
src/realm/array_blobs_big.cpp 2 98.58%
src/realm/sync/noinst/server/server.cpp 3 73.16%
src/realm/sync/noinst/server/server_history.cpp 3 63.57%
test/fuzz_tester.hpp 4 57.32%
src/realm/integer_compressor.cpp 12 76.21%
test/fuzz_group.cpp 22 43.7%
Totals Coverage Status
Change from base Build nicola.cabiddu_1762: 0.4%
Covered Lines: 216781
Relevant Lines: 239224

💛 - Coveralls

@jedelbo jedelbo merged commit fdfa64b into nc/RCORE-2094 May 30, 2024
36 of 38 checks passed
@jedelbo jedelbo deleted the je/RCORE-2094 branch May 30, 2024 13:33
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 29, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants