mirror of https://github.com/grpc/grpc-java.git
This provides a substantial ~3x performance increase to Netty async streaming with small messages. It also increases OkHttp performance for the same benchmark 40% and decreases unary latency by 3µs for Netty and 10µs for OkHttp. We avoid calling listener after closure because the Executor used for RPC callbacks may no longer be available. This issue was already present in the ApplicationThreadDeframer, but full-stream compression is not really deployed so was unnoticed. DirectExecutor saw a 5-6µs latency increase via MigratingDeframer. DirectExecutor usages should see no benefit from MigratingDeframer, so disable it in that case. |
||
|---|---|---|
| .. | ||
| src | ||
| third_party/okhttp | ||
| BUILD.bazel | ||
| build.gradle | ||