Skip to content

kv: pass roachpb.Header by pointer to DeclareKeysFunc#73718

Merged
craig[bot] merged 1 commit intocockroachdb:masterfrom
nvb:nvanbenschoten/headerPtrDeclare
Dec 15, 2021
Merged

kv: pass roachpb.Header by pointer to DeclareKeysFunc#73718
craig[bot] merged 1 commit intocockroachdb:masterfrom
nvb:nvanbenschoten/headerPtrDeclare

Conversation

@nvb
Copy link
Copy Markdown
Contributor

@nvb nvb commented Dec 11, 2021

The roachpb.Header struct is up to 160 bytes in size. That's a little too
large to be passing by value repeatedly when doing so is easy to avoid. This
commit switches to passing roachpb.Header structs by pointer through the
DeclareKeysFunc implementations.

The `roachpb.Header` struct is up to 160 bytes in size. That's a little too
large to be passing by value repeatedly when doing so is easy to avoid. This
commit switches to passing roachpb.Header structs by pointer through the
DeclareKeysFunc implementations.
@nvb nvb requested a review from AlexTalks December 11, 2021 21:54
@nvb nvb requested a review from a team as a code owner December 11, 2021 21:54
@cockroach-teamcity
Copy link
Copy Markdown
Member

This change is Reviewable

@nvb
Copy link
Copy Markdown
Contributor Author

nvb commented Dec 14, 2021

TFTR!

bors r+

@craig
Copy link
Copy Markdown
Contributor

craig bot commented Dec 15, 2021

Build succeeded:

@craig craig bot merged commit acf40e9 into cockroachdb:master Dec 15, 2021
@nvb nvb deleted the nvanbenschoten/headerPtrDeclare branch December 22, 2021 01:10
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