wwbmmm commented on PR #2946:
URL: https://github.com/apache/brpc/pull/2946#issuecomment-2796503011

   > 
gzip和zlib的compress和序列化方式耦合的原因应该是protobuf接口导致的,GzipInputStream/GzipOutputStream将解压/压缩过程作为输入/输出流的一部分了。这应该是出于性能考虑吧,我测了一下,耦合的性能比非耦合的性能高:
   
   
嗯,我的意思是,对std协议,处理方式和当前一致,还是耦合方式,保持性能优势。对于其它协议,传入一个SerializedRequest类型的msg,做特殊处理,这样是否可以?


-- 
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: dev-unsubscr...@brpc.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@brpc.apache.org
For additional commands, e-mail: dev-h...@brpc.apache.org

Reply via email to