-
-
Notifications
You must be signed in to change notification settings - Fork 730
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
work in batches of docs #1937
work in batches of docs #1937
Conversation
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## main #1937 +/- ##
==========================================
+ Coverage 94.46% 94.48% +0.01%
==========================================
Files 309 309
Lines 56822 56825 +3
==========================================
+ Hits 53676 53690 +14
+ Misses 3146 3135 -11
... and 4 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
src/query/vec_docset.rs
Outdated
} | ||
//#[test] | ||
// pub fn test_fill_buffer() { | ||
// let doc_ids: Vec<DocId> = (1u32..210u32).collect(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what should we do with this test?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I reenabled it for the new block size and added another test for AllScorer
Work in batches of docs when collecting results
collect_block
toSegmentCollector
for cases without scores.fill_buffer
for AllQuery. The check inadvance
is quite expensivefill_buffer
toBox<TDocSet>
fill_buffer
as a hint to the compilerThe batch handling could also be done for scores, e.g.
collect_block_with_score
.Performance improvements look really good