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

Encode protobuf to iodata for better performance #395

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

v0idpwn
Copy link
Contributor

@v0idpwn v0idpwn commented Dec 28, 2024

No description provided.

@v0idpwn
Copy link
Contributor Author

v0idpwn commented Dec 28, 2024

We can do the same for JSON once elixir-protobuf/protobuf#388 is released.

@@ -14,7 +14,7 @@ defmodule GRPC.Client.Adapter do

@callback disconnect(channel :: Channel.t()) :: {:ok, Channel.t()} | {:error, any()}

@callback send_request(stream :: Stream.t(), contents :: binary(), opts :: keyword()) ::
Copy link
Contributor

Choose a reason for hiding this comment

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

This is technically a breaking change, so let's hold off until we're ready for a new minor release

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed :)

lib/grpc/codec/proto.ex Outdated Show resolved Hide resolved
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