grpc-java/okhttp
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
..
src api, core: support zero copy into protobuf (#8102) 2021-05-14 14:45:03 -07:00
third_party/okhttp Update to Error Prone 2.4 2020-08-06 10:56:16 -05:00
BUILD.bazel Upgrade error_prone_annotations to 2.3.4 2020-01-03 14:50:34 -08:00
build.gradle okhttp: exclude Internal* from javadoc 2020-10-21 16:11:57 -04:00