Eliminate FFM round-trips via nextDoc piggyback on collectDocs#22493
Eliminate FFM round-trips via nextDoc piggyback on collectDocs#22493aasom143 wants to merge 1 commit into
Conversation
PR Reviewer Guide 🔍(Review updated until commit edb60a7)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to edb60a7 Explore these optional code suggestions:
Previous suggestionsSuggestions up to commit 772f4f3
Suggestions up to commit f2ced7a
Suggestions up to commit 2fb7234
Suggestions up to commit b7c9979
Suggestions up to commit f24bb98
|
4877a73 to
55cac5b
Compare
|
Persistent review updated to latest commit 55cac5b |
55cac5b to
454eafc
Compare
|
Persistent review updated to latest commit 454eafc |
|
❌ Gradle check result for 454eafc: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
454eafc to
e7cda94
Compare
|
Persistent review updated to latest commit e7cda94 |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #22493 +/- ##
============================================
- Coverage 73.41% 71.43% -1.98%
- Complexity 76419 76625 +206
============================================
Files 6104 6132 +28
Lines 346628 357308 +10680
Branches 49886 52076 +2190
============================================
+ Hits 254469 255241 +772
- Misses 71860 81748 +9888
- Partials 20299 20319 +20 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
e7cda94 to
abcdfd2
Compare
|
Persistent review updated to latest commit abcdfd2 |
abcdfd2 to
f06f05c
Compare
|
Persistent review updated to latest commit f06f05c |
f06f05c to
4051f8a
Compare
|
Persistent review updated to latest commit 4051f8a |
|
❌ Gradle check result for 4051f8a: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
4051f8a to
c8c76ac
Compare
|
Persistent review updated to latest commit c8c76ac |
|
❌ Gradle check result for c8c76ac: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
c8c76ac to
15a465a
Compare
|
Persistent review updated to latest commit 15a465a |
|
❌ Gradle check result for 15a465a: null Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
15a465a to
f24bb98
Compare
|
Persistent review updated to latest commit f24bb98 |
f24bb98 to
b7c9979
Compare
|
Persistent review updated to latest commit b7c9979 |
|
❌ Gradle check result for b7c9979: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
b7c9979 to
2fb7234
Compare
|
Persistent review updated to latest commit 2fb7234 |
2fb7234 to
f2ced7a
Compare
|
Persistent review updated to latest commit f2ced7a |
|
❌ Gradle check result for f2ced7a: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
f2ced7a to
772f4f3
Compare
|
Persistent review updated to latest commit 772f4f3 |
|
❌ Gradle check result for 772f4f3: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
collectDocs now returns packed i64: upper 32 bits = next matching docId beyond maxDoc, lower 32 bits = wordsWritten. No new FFM calls needed. Rust consumers use nextDoc for three levels of optimization: 1. Full RG skip: nextDoc >= rgMax → no collectDocs call 2. Tightened range: nextDoc > rgMin → start from nextDoc, smaller bitset 3. No benefit: nextDoc <= rgMin → call as before Implemented in both SingleCollectorEvaluator (AtomicI32 across RGs) and CollectorLeafBitmaps/BitmapTree (per-leaf HashMap keyed by Arc identity).. Signed-off-by: Somesh Gupta <someshgupta987@gmail.com>
772f4f3 to
edb60a7
Compare
|
Persistent review updated to latest commit edb60a7 |
collectDocs now returns packed i64: upper 32 bits = next matching docId beyond maxDoc, lower 32 bits = wordsWritten. No new FFM calls needed.
Rust consumers use nextDoc for three levels of optimization:
Implemented in both SingleCollectorEvaluator (AtomicI32 across RGs) and CollectorLeafBitmaps/BitmapTree (per-leaf HashMap keyed by Arc identity).
Description
[Describe what this change achieves]
Related Issues
Resolves #[Issue number to be closed when this PR is merged]
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.