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

grpc: Reduce size of objects in memory #368

Merged
merged 1 commit into from
Nov 14, 2022

Conversation

adriansr
Copy link
Contributor

Given that we're not using any of the XXX_ fields (for example to check for unknown fields), and we don't need golang/protobuf compatibility as we're using gogoproto everywhere, we can tune the code generator to not output these XXX_* fields and save 28-32 bytes for each decoded object we keep in memory.

Given that we're not using any of the XXX_ fields (for example to check
for unknown fields), and we don't need golang/protobuf compatibility as
we're using gogoproto everywhere, we can tune the code generator to not
output these `XXX_*` fields and save 28 bytes for each decoded object we
keep in memory.

Signed-off-by: Adrian Serrano <adrisr83@gmail.com>
@adriansr adriansr requested a review from a team as a code owner November 11, 2022 11:05
@adriansr adriansr merged commit 5f26420 into grafana:main Nov 14, 2022
@adriansr adriansr deleted the grpc_reduce_object_size branch November 14, 2022 17:15
mem added a commit that referenced this pull request Nov 16, 2022
* grpc: Reduce size of objects in memory (#368)
* Revert: handle connection state changes (#366)
* Fix: set up backoffer to adhoc handler (#363)
* Update BBE to pre-release commit cc533f125b41 (#361)
* Update BBE to v0.22.0 (#360)

Signed-off-by: Marcelo E. Magallon <marcelo.magallon@grafana.com>
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.

None yet

2 participants