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

Server interceptors micro optimisation #1091

Merged
merged 1 commit into from
Jan 7, 2021
Merged

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Jan 7, 2021

Motivation:

In the server interceptor pipeline, the head forwards inbound events and
the tail forwards outbound events, yet we start from the index of the
head/tail, rather than the index after.

Modifications:

  • start one index beyond the head/tail rather than at the head/tail

Result:

A small (0.1%) decrease in instructions executed in the
embedded_server_unary_10k_small_requests benchmark.

Motivation:

In the server interceptor pipeline, the head forwards inbound events and
the tail forwards outbound events, yet we start from the index of the
head/tail, rather than the index after.

Modifications:

- start one index beyond the head/tail rather than at the head/tail

Result:

A small (0.1%) decrease in instructions executed in the
embedded_server_unary_10k_small_requests benchmark.
@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Jan 7, 2021
@glbrntt glbrntt requested a review from Lukasa January 7, 2021 09:12
@glbrntt glbrntt merged commit 22966ff into grpc:main Jan 7, 2021
@glbrntt glbrntt deleted the gb-micro-opt branch January 7, 2021 09:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🔨 semver/patch No public API change.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants