Skip to content

Cache commonly used grpc-status mdelems#1993

Merged
dgquintas merged 6 commits intogrpc:masterfrom
ctiller:break-break-break-the-locks
Jun 9, 2015
Merged

Cache commonly used grpc-status mdelems#1993
dgquintas merged 6 commits intogrpc:masterfrom
ctiller:break-break-break-the-locks

Conversation

@ctiller
Copy link
Copy Markdown
Member

@ctiller ctiller commented Jun 9, 2015

Part of our tail latency includes conversion of status id to a string, and then locking the metadata context table to look up said value in a hash table, and then ignoring the work we just did.

Instead, for commonly used status values, pre-create the entire status element, and just ref it when needed (which can be done without acquiring the lock).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

docstring while at it? :)

dgquintas added a commit that referenced this pull request Jun 9, 2015
Cache commonly used grpc-status mdelems
@dgquintas dgquintas merged commit 85af4be into grpc:master Jun 9, 2015
@lock lock bot locked as resolved and limited conversation to collaborators Jan 31, 2019
@lock lock bot unassigned dgquintas Jan 31, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants