Skip to content

Avoid Metadata.key allocations on grpc#11351

Open
amarziali wants to merge 1 commit into
masterfrom
andrea.marziali/grpcs
Open

Avoid Metadata.key allocations on grpc#11351
amarziali wants to merge 1 commit into
masterfrom
andrea.marziali/grpcs

Conversation

@amarziali
Copy link
Copy Markdown
Contributor

What Does This Do

Avoid allocating a Metadata.Key allocation for each grpc call (it's on the hot path). The keys can be cached in a large enough DDCache

Motivation

Additional Notes

Contributor Checklist

Jira ticket: [PROJ-IDENT]

Note: Once your PR is ready to merge, add it to the merge queue by commenting /merge. /merge -c cancels the queue request. /merge -f --reason "reason" skips all merge queue checks; please use this judiciously, as some checks do not run at the PR-level. For more information, see this doc.

@amarziali amarziali requested review from a team as code owners May 12, 2026 13:23
@amarziali amarziali added type: enhancement Enhancements and improvements tag: performance Performance related changes inst: grpc gRPC instrumentation labels May 12, 2026
@github-actions
Copy link
Copy Markdown
Contributor

Hi! 👋 Thanks for your pull request! 🎉

To help us review it, please make sure to:

  • Add at least one type, and one component or instrumentation label to the pull request

If you need help, please check our contributing guidelines.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

inst: grpc gRPC instrumentation tag: performance Performance related changes type: enhancement Enhancements and improvements

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant