Protocol without Protocol Buffer: gun -> guna #6
DuckSoft
started this conversation in
Mind Blown
Replies: 1 comment 1 reply
-
What if the data length is larger than |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Basic Ideas
The parsing overhead for LEB128 is huge. So why not remove it?
According to https://github.com/grpc/grpc-go/blob/master/Documentation/encoding.md#codecs-serialization-and-deserialization, we know that we can define our own Codecs. For the most simple use case, we can just copy the packet as-is, without having the need to calculate the length.
Structure
The knowledge above enables us to turn the structure from (original
gun
protocol):to the following:
which, I would like to name as
guna
protocol.Benefit
Drawback
Acknowledgements
The idea is not mine. I am asking for the permission to put his name here.
Beta Was this translation helpful? Give feedback.
All reactions