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

crl-release-24.1: db,wal: avoid Batch.refData allocation #3570

Merged
merged 1 commit into from
Apr 30, 2024

Conversation

jbowens
Copy link
Collaborator

@jbowens jbowens commented Apr 30, 2024

24.1 backport of #3565.


Passing in the Batch.refData func into (wal.Writer).WriteRecord forced an allocation for every committed batch. This commit defines a new wal.RefCount interface implemented by Batch to avoid the allocation.

Informs cockroachdb/cockroach#123236.

Passing in the Batch.refData func into (wal.Writer).WriteRecord forced an
allocation for every committed batch. This commit defines a new wal.RefCount
interface implemented by Batch to avoid the allocation.

Informs cockroachdb/cockroach#123236.
@jbowens jbowens requested review from sumeerbhola and a team April 30, 2024 15:29
@cockroach-teamcity
Copy link
Member

This change is Reviewable

@jbowens
Copy link
Collaborator Author

jbowens commented Apr 30, 2024

TFTR!

@jbowens jbowens merged commit 62fc20d into cockroachdb:crl-release-24.1 Apr 30, 2024
10 checks passed
@jbowens jbowens deleted the 24.1-3565 branch April 30, 2024 18:08
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.

None yet

3 participants