Repository navigation
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 |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
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
gunprotocol):to the following:
which, I would like to name as
gunaprotocol.Benefit
Drawback
Acknowledgements
The idea is not mine. I am asking for the permission to put his name here.
All reactions