grpc / grpc/grpc-java

Requesting more messages from the Deframer causes unnecessary context-switching

未关闭
#433 6 条评论 0 个 reaction 已指派 1 人 已被 @louiscryan 认领 在 GitHub 查看
performance
主要语言
Java
星标
12.1k
派生
4k
平均合并
2 天 17 小时
30 天内合并 PR
37

描述

In the case of a incoming stream of messages the flow-control window may accommodate more than one message. If the deframer has several messages in its currently held buffer we end up doing a lot of context switching to request more messages out as we end up with a sequence like

deframer.request(1) -> jump to app thread -> onPayload() -> call.request(1) -> jump to event loop -> deframer.request(1)

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。