fzhedu commented on issue #2052: URL: https://github.com/apache/incubator-brpc/issues/2052#issuecomment-1375702075
@leaf-potato 谢谢你的指点,`append_user_data ` 确实可以避免大chunk copy 到 attachment 的问题。 Q3 我正在学习中。 针对 Q1 还有疑问,不理解你上面回复 ``` 在限制范围内,attachment和proto的区别在于序列化和反序列化,如果attachment是传proto序列化后的数据,理论上两者差距不大。 ``` 针对`attachment传proto序列化后的数据,理论上两者差距不大`,是不是因为采用 `append_user_data `没有复制数据,所以跟直接传proto序列化后的数据效果差不多?如果采用 `append` 复制proto序列化后的数据到 iobuf,就应该会慢一些? 这一块有官方文档说明么?或者有没有实验数据。 -- 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]
