Skip to content

Commit

Permalink
grpc: use the new v2 encoding
Browse files Browse the repository at this point in the history
The new v2 encoding uses pooling for messages that exceed 1024B so it
improves CPU usage a little bit.

Signed-off-by: Giedrius Statkevičius <giedrius.statkevicius@vinted.com>
  • Loading branch information
GiedriusS committed Oct 30, 2024
1 parent 19dc4b9 commit c0ebdaa
Show file tree
Hide file tree
Showing 3 changed files with 138 additions and 1,131 deletions.
5 changes: 1 addition & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ require (
golang.org/x/time v0.7.0
google.golang.org/api v0.195.0 // indirect
google.golang.org/genproto v0.0.0-20240823204242-4ba0660f739c // indirect
google.golang.org/grpc v1.66.0
google.golang.org/grpc v1.67.1
google.golang.org/grpc/examples v0.0.0-20211119005141-f45e61797429
gopkg.in/alecthomas/kingpin.v2 v2.2.6
gopkg.in/yaml.v2 v2.4.0
Expand Down Expand Up @@ -289,9 +289,6 @@ replace (

github.com/vimeo/galaxycache => github.com/thanos-community/galaxycache v0.0.0-20211122094458-3a32041a1f1e

// Pinning grpc due https://github.com/grpc/grpc-go/issues/7314
google.golang.org/grpc => google.golang.org/grpc v1.63.2

// Overriding to use latest commit.
gopkg.in/alecthomas/kingpin.v2 => github.com/alecthomas/kingpin v1.3.8-0.20210301060133-17f40c25f497
)
Loading

0 comments on commit c0ebdaa

Please sign in to comment.