Skip to content

Conversation

@stuhood
Copy link

@stuhood stuhood commented Nov 3, 2025

The tuple Collectors and MultiCollector do not have explicit overrides of collect_block, meaning that wrapping a Collector which does implement that method loses its advantage.

Noticed in a profile while using a tuple Collector of TopDocs and Aggregations (because Aggregations take advantage of collect_block).

@stuhood
Copy link
Author

stuhood commented Nov 3, 2025

Upstream at quickwit-oss#2727

Copy link

@mdashti mdashti left a comment

Choose a reason for hiding this comment

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

Thanks @stuhood. LGTM.

@stuhood stuhood merged commit 0d90e33 into main Nov 4, 2025
5 checks passed
@stuhood stuhood deleted the stuhood.collector-opt branch November 4, 2025 14:40
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