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

perf(grpc): switch to gRPC CodecV2 for improved performance #944

Merged
merged 1 commit into from
Feb 3, 2025

Conversation

ijsong
Copy link
Member

@ijsong ijsong commented Dec 21, 2024

What this PR does

This PR updates the gRPC codec from v1 to v2, enhancing performance and reducing
memory allocations by utilizing a memory pool for encoded messages.

Refs:

@ijsong ijsong requested a review from hungryjang as a code owner December 21, 2024 12:33
Copy link

codecov bot commented Dec 21, 2024

Codecov Report

Attention: Patch coverage is 73.07692% with 7 lines in your changes missing coverage. Please review.

Project coverage is 80.07%. Comparing base (195d7e7) to head (e7002e3).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
pkg/rpc/codec.go 73.07% 5 Missing and 2 partials ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #944      +/-   ##
==========================================
- Coverage   80.14%   80.07%   -0.07%     
==========================================
  Files         179      179              
  Lines       21548    21563      +15     
==========================================
- Hits        17269    17266       -3     
- Misses       3497     3511      +14     
- Partials      782      786       +4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ijsong ijsong force-pushed the use_grpc_codec_v2 branch 2 times, most recently from 6e38c0c to 859ee20 Compare January 16, 2025 04:20
@ijsong ijsong changed the base branch from main to testutil_add_unit_tests_and_remove_unused_functions January 16, 2025 04:22
@ijsong ijsong requested a review from hungryjang February 2, 2025 10:21
@ijsong ijsong force-pushed the testutil_add_unit_tests_and_remove_unused_functions branch from fc72ef5 to c9d5fa8 Compare February 3, 2025 10:58
@ijsong ijsong force-pushed the use_grpc_codec_v2 branch from 859ee20 to 620cb18 Compare February 3, 2025 10:58
@ijsong ijsong force-pushed the testutil_add_unit_tests_and_remove_unused_functions branch from c9d5fa8 to 2f859d2 Compare February 3, 2025 11:24
@ijsong ijsong force-pushed the use_grpc_codec_v2 branch from 620cb18 to 9ee82d7 Compare February 3, 2025 11:24
Base automatically changed from testutil_add_unit_tests_and_remove_unused_functions to main February 3, 2025 12:17
@ijsong ijsong force-pushed the use_grpc_codec_v2 branch from 9ee82d7 to 101fbbc Compare February 3, 2025 14:18
This PR updates the gRPC codec from v1 to v2, enhancing performance and reducing
memory allocations by utilizing a memory pool for encoded messages.

Refs:
- grpc/grpc-go#7356
- vitessio/vitess#16790
@ijsong ijsong force-pushed the use_grpc_codec_v2 branch from 101fbbc to e7002e3 Compare February 3, 2025 15:08
@ijsong ijsong merged commit b0c7406 into main Feb 3, 2025
10 checks passed
@ijsong ijsong deleted the use_grpc_codec_v2 branch February 3, 2025 15:21
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.

2 participants