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

sql/distsqlrun: use FastIntSet to track unmatched right-side rows #21303

Merged

Conversation

petermattis
Copy link
Collaborator

Replace []bool with FastIntSet for tracking unmatched right-side
rows. The FastIntSet will avoid an allocation for the common case of
less than 64 rows on the right-side.

This only affects right and full outer joins.

Fixes #21269

Release note: None

Replace `[]bool` with `FastIntSet` for tracking unmatched right-side
rows. The `FastIntSet` will avoid an allocation for the common case of
less than 64 rows on the right-side.

This only affects right and full outer joins.

Fixes cockroachdb#21269

Release note: None
@petermattis petermattis requested review from a team January 7, 2018 17:59
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@petermattis
Copy link
Collaborator Author

I'm not aware of any benchmarks this affects.

@RaduBerinde
Copy link
Member

LGTM

@petermattis petermattis merged commit 4051ba3 into cockroachdb:master Jan 7, 2018
@petermattis petermattis deleted the pmattis/mergejoiner-fast-int-set branch January 7, 2018 20:19
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