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

rac2: small allocation optimizations in rangeController #132254

Merged
merged 1 commit into from
Oct 10, 2024

Conversation

sumeerbhola
Copy link
Collaborator

  • Scratch for []entryFCState for the new entries being appended.
  • Scratch for []tokenWaitingHandleInfo in WaitForEval.
  • Accumulate the (send or eval) tokens to deduct and then make one call to the shared tokenCounter. This avoids repeated calls to PhysicalTime() and repeated acquisitons of a possibly contended mutex.

Informs #128033

Epic: CRDB-37515

Release note: None

@sumeerbhola sumeerbhola requested review from pav-kv and kvoli October 9, 2024 18:38
@sumeerbhola sumeerbhola requested a review from a team as a code owner October 9, 2024 18:39
Copy link

blathers-crl bot commented Oct 9, 2024

It looks like your PR touches production code but doesn't add or edit any test code. Did you consider adding tests to your PR?

🦉 Hoot! I am a Blathers, a bot for CockroachDB. My owner is dev-inf.

@cockroach-teamcity
Copy link
Member

This change is Reviewable

Copy link
Collaborator

@kvoli kvoli left a comment

Choose a reason for hiding this comment

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

:lgtm:

Reviewed 1 of 1 files at r1, all commit messages.
Reviewable status: :shipit: complete! 1 of 0 LGTMs obtained (waiting on @pav-kv)

- Scratch for []entryFCState for the new entries being appended.
- Scratch for []tokenWaitingHandleInfo in WaitForEval.
- Accumulate the (send or eval) tokens to deduct and then make
  one call to the shared tokenCounter. This avoids repeated calls
  to PhysicalTime() and repeated acquisitons of a possibly contended
  mutex.

Informs cockroachdb#128033

Epic: CRDB-37515

Release note: None
@sumeerbhola
Copy link
Collaborator Author

TFTR!

@sumeerbhola
Copy link
Collaborator Author

bors r=kvoli

@craig craig bot merged commit a82fea1 into cockroachdb:master Oct 10, 2024
23 checks passed
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