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

colblk: store shared and bundle prefix length #3878

Merged
merged 1 commit into from
Aug 22, 2024

Conversation

RaduBerinde
Copy link
Member

@RaduBerinde RaduBerinde commented Aug 21, 2024

This PR is only for the last commit.

colblk: store shared and bundle prefix length

We currently store the shared prefix length and bundle length
separately and have to add them every time we move to a new key. We
switch to storing their sum.

Together with #3877, #3869, #3872 we get about 15-20% improvement on Next benchmarks and are now ~on par with the row iterator.
Full results on AMD64 (Ryzen 9):
https://gist.github.com/RaduBerinde/d94b28f87943d9258f950c8588cb6a98

@RaduBerinde RaduBerinde requested a review from jbowens August 21, 2024 19:14
@RaduBerinde RaduBerinde requested a review from a team as a code owner August 21, 2024 19:14
@cockroach-teamcity
Copy link
Member

This change is Reviewable

We currently store the shared prefix length and bundle length
separately and have to add them every time we move to a new key. We
switch to storing their sum.
Copy link
Collaborator

@jbowens jbowens left a comment

Choose a reason for hiding this comment

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

:lgtm_strong:

Good idea!

Reviewed 1 of 1 files at r4, all commit messages.
Reviewable status: 1 of 12 files reviewed, all discussions resolved

@RaduBerinde
Copy link
Member Author

TFTR!

@RaduBerinde RaduBerinde merged commit 1b4021b into cockroachdb:master Aug 22, 2024
11 checks passed
@RaduBerinde RaduBerinde deleted the colblk-next-opt branch August 22, 2024 18: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