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

Update the codegen to use the new handlers #1105

Merged
merged 2 commits into from
Jan 19, 2021
Merged

Conversation

glbrntt
Copy link
Collaborator

@glbrntt glbrntt commented Jan 19, 2021

Motivation:

We have new server handlers; all we need to do is generate the code to
use them.

Modifications:

  • Update codegen
  • Fixup interceptor tests and remove tests already covered by
    {Unary,...}HandlerTests
  • Deprecate handleMethod with a message to re-generate server code
  • Regenerate our own code

Result:

Instruction count reductions:

  • unary_10k_small_requests: -4.7%
  • embedded_server_unary_10k_small_requests: -25.4%
  • embedded_server_client_streaming_1_rpc_10k_small_requests: -35.6%
  • embedded_server_client_streaming_10k_rpcs_1_small_requests: -25.1%
  • embedded_server_server_streaming_1_rpc_10k_small_responses: -14.1%
  • embedded_server_server_streaming_10k_rpcs_1_small_response: -21.1%
  • embedded_server_bidi_1_rpc_10k_small_requests: -29.2%
  • embedded_server_bidi_10k_rpcs_1_small_request: -23.9%

Motivation:

We have new server handlers; all we need to do is generate the code to
use them.

Modifications:

- Update codegen
- Fixup interceptor tests and remove tests already covered by
  {Unary,...}HandlerTests
- Deprecate `handleMethod` with a message to re-generate server code
- Regenerate our own code

Result:

Instruction count reductions:
- unary_10k_small_requests: -4.7%
- embedded_server_unary_10k_small_requests: -25.4%
- embedded_server_client_streaming_1_rpc_10k_small_requests: -35.6%
- embedded_server_client_streaming_10k_rpcs_1_small_requests: -25.1%
- embedded_server_server_streaming_1_rpc_10k_small_responses: -14.1%
- embedded_server_server_streaming_10k_rpcs_1_small_response: -21.1%
- embedded_server_bidi_1_rpc_10k_small_requests: -29.2%
- embedded_server_bidi_10k_rpcs_1_small_request: -23.9%
@glbrntt
Copy link
Collaborator Author

glbrntt commented Jan 19, 2021

"Real" changes in f096ebb

@glbrntt glbrntt requested a review from Lukasa January 19, 2021 14:03
@glbrntt glbrntt added the 🔨 semver/patch No public API change. label Jan 19, 2021
@glbrntt
Copy link
Collaborator Author

glbrntt commented Jan 19, 2021

(GitHub didn't pick up my push on the last PR so creating a new one.)

Copy link
Collaborator

@Lukasa Lukasa left a comment

Choose a reason for hiding this comment

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

:shipit:

@glbrntt glbrntt merged commit 91ab843 into grpc:main Jan 19, 2021
@glbrntt glbrntt deleted the gb-codegen branch January 19, 2021 16:19
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