Skip to content

Conversation

@jainankitk
Copy link
Contributor

Description

Aims at reducing the overhead of virtual calls from bulk scorer by loading matching docIds into a buffer before flushing the doc buffer into the collector. Related issue #15381

@github-actions
Copy link
Contributor

This PR does not have an entry in lucene/CHANGES.txt. Consider adding one. If the PR doesn't need a changelog entry, then add the skip-changelog label to it and you will stop receiving this reminder on future updates to the PR.

Comment on lines +144 to +147
default void collect(int[] docs, int count) throws IOException {
for (int i = 0; i < count; ++i) {
collect(docs[i]);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I was hoping that LeafCollector implementations override this method only if they don't need access to the score, but I guess it won't work as the underlying iterator already moved onto the next document

Signed-off-by: Ankit Jain <[email protected]>
@github-actions
Copy link
Contributor

This PR does not have an entry in lucene/CHANGES.txt. Consider adding one. If the PR doesn't need a changelog entry, then add the skip-changelog label to it and you will stop receiving this reminder on future updates to the PR.

@jainankitk jainankitk added the skip-changelog Apply to PRs that don't need a changelog entry, stopping the automated changelog check. label Oct 30, 2025
@jainankitk jainankitk marked this pull request as draft October 30, 2025 02:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

module:core/search skip-changelog Apply to PRs that don't need a changelog entry, stopping the automated changelog check.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant