Refactor Intersection Iterator - [MOD-8842]#6322
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #6322 +/- ##
==========================================
- Coverage 88.90% 88.80% -0.11%
==========================================
Files 241 246 +5
Lines 40793 41143 +350
Branches 3435 3483 +48
==========================================
+ Hits 36266 36536 +270
- Misses 4491 4564 +73
- Partials 36 43 +7
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
JoanFM
left a comment
There was a problem hiding this comment.
There is no need for IT_V2 ? I think
|
I cannot think now of a better way, but these multiple level loop seems hard to follow. Isn't there a way to make the loop over |
I renamed the constructor
I don't think so, and it's better to maintain the current separation due to the differences in the outer loop when validation is required. |
There was a problem hiding this comment.
Pull Request Overview
This PR refactors the intersection iterator implementation to improve performance and adds comprehensive tests and micro-benchmarks.
- Refactoring of the intersection iterator logic and API
- Addition of extensive unit tests to verify Read, SkipTo, and Rewind functionality
- Inclusion of micro-benchmark tests to measure performance improvements
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.
| File | Description |
|---|---|
| tests/cpptests/test_cpp_iterator_intersection.cpp | Added tests verifying various iterator behaviors |
| tests/cpptests/micro-benchmarks/benchmark_intersection_iterator.cpp | Added benchmarks to assess performance improvements |
| src/iterators/intersection_iterator.h | Updated header defining the new intersection iterator API |
| src/iterators/intersection_iterator.c | Refactored implementation of the intersection iterator |
JoanFM
left a comment
There was a problem hiding this comment.
Some naming suggestions (feel free to take or not), and small looping thing
Describe the changes in the pull request
Implementation is based on #5619
Micro-benchmarks show an improvement of up to 37%
Mark if applicable