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

Reduce specialization in TopScoreDocCollector. #14038

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

jpountz
Copy link
Contributor

@jpountz jpountz commented Dec 4, 2024

The specialization of SimpleCollector vs. PagingCollector only helps save a null check, so it's probably not worth the complexity. Benchmarks cannot see a difference with this change.

The specialization of `SimpleCollector` vs. `PagingCollector` only helps save a
null check, so it's probably not worth the complexity. Benchmarks cannot see a
difference with this change.
@jpountz jpountz added this to the 10.1.0 milestone Dec 4, 2024
@jpountz jpountz merged commit 3fcadaf into apache:main Dec 4, 2024
3 checks passed
@jpountz jpountz deleted the simplify_top_score_docs_collector branch December 4, 2024 14:12
jpountz added a commit that referenced this pull request Dec 4, 2024
The specialization of `SimpleCollector` vs. `PagingCollector` only helps save a
null check, so it's probably not worth the complexity. Benchmarks cannot see a
difference with this change.
@javanna
Copy link
Contributor

javanna commented Dec 4, 2024

++ thanks for simplifying this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants