libratiger commented on issue #852: bad performance for ParseFromCompressedData
URL: https://github.com/apache/incubator-brpc/issues/852#issuecomment-536377792
 
 
   我也发现过这种情况,就是序列化和反序列化慢。我看了一下底层,都是调用的pb的反序列化,这个锅应该是pb的问题。
   
   如果自己比较明确数据格式的画,可以尝试streaming rpc,这个里面没有调用Pb的反序列化,brpc会把IOBuf交给用户来处理。
   
   
但是brpc的streaming和grpc的差别好像很大,grpc不用改什么借口,但是brpc需要换成```StreamWrite```这些接口。这个文档也没有多说原因,如果能够补上会更好?@jamesge

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

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

Reply via email to