Skip to content

Conversation

gaobinlong
Copy link
Contributor

@gaobinlong gaobinlong commented Aug 27, 2025

Description

Resolves a TODO in FirstPassGroupingCollector, optimized the code by skipping heavy TreeSet add/remove operations for the first group, just change the group value in place, this can work because if new competitive doc is found in the first group, the position in the TreeSet of that group won't change.

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.

Signed-off-by: Binlong Gao <[email protected]>
@github-actions github-actions bot added this to the 10.3.0 milestone Aug 27, 2025
@gaobinlong gaobinlong marked this pull request as draft August 27, 2025 08:49
@gaobinlong gaobinlong closed this Aug 27, 2025
@gaobinlong gaobinlong reopened this Aug 27, 2025
@gaobinlong gaobinlong changed the title Skip heavy TreeSet opts for the first/last group in FirstPassGroupingCollector Skip heavy TreeSet opts for the first group in FirstPassGroupingCollector Aug 27, 2025
Signed-off-by: Binlong Gao <[email protected]>
@gaobinlong gaobinlong marked this pull request as ready for review August 27, 2025 12:57
Signed-off-by: Binlong Gao <[email protected]>
Signed-off-by: Binlong Gao <[email protected]>
@gaobinlong
Copy link
Contributor Author

@jpountz could you help to review this PR, thanks!

@github-actions github-actions bot modified the milestones: 10.3.0, 10.4.0 Sep 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant