grpc-java/netty
Chengyuan Zhang e5d0e9d9a8
api, core: support zero copy into protobuf (#8102)
Enables a codepath for zero-copy protobuf deserialization. Two new InputStream extension interfaces are added:

- HasByteBuffer: allows access to the underlying buffers containing inbound bytes directly without copying
- Detachable: allows customer marshaller to keep the buffers around until the application code is done with using the protobuf messages

Applications can implement a custom marshaller that takes over the ownership of ByteBuffers and wrap them into ByteStrings with protobuf's UnsafeByteOperations support. Then a RopeByteString, which is a in-place composite of ByteStrings can be created. This enables using the zero-copy codepath (requires immutable ByteBuffer indication) of CodedInputStream for deserialization.
2021-05-14 14:45:03 -07:00
..
shaded netty: Remove Maven pom.properties from netty-shaded 2021-05-11 15:36:44 -07:00
src api, core: support zero copy into protobuf (#8102) 2021-05-14 14:45:03 -07:00
BUILD.bazel bazel: Add helper for maven_install's override_targets 2019-08-22 07:40:32 -07:00
build.gradle api: Add ChannelCredentials 2020-10-07 13:58:37 -05:00