wwbmmm commented on issue #3167:
URL: https://github.com/apache/brpc/issues/3167#issuecomment-3663388875

   > 
   > 
这种改法看着确实比将整个函数下推更好,脑测应该可以满足目前RDMA和TCP的需求,但是我有一个疑问,就是这种实现只能新增一些操作,不能减少一些操作,如果后续加入的传输层协议对目前的非宏定义部分的操作有一些不需要的也会因为这个架构而被迫执行响应的操作,可能会有一些不必要的性能损耗?
 那个时候再将对应的操作下推到其他协议中来避免这个问题可以吗? 或者对这一点损耗不进行处理(如果损耗很小)? 或者可以确定不会出现这种问题?
   
   可以具体问题具体分析吧,如果损耗较小可以不处理,损耗较大可以下推到transport,或者做成开关,由transport来控制这个开关


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to