0x007004 opened a new issue, #1738:
URL: https://github.com/apache/incubator-brpc/issues/1738

   **Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)**
   
   否
   
   **Describe the solution you'd like (描述你期望的解决方法)**
   
   这里的controller接受了使用方设置一些rpc相关的参数:
   
https://github.com/apache/incubator-brpc/blob/4b0b239111f1afdfd8e1bd5cf4c87bc95666751d/src/brpc/parallel_channel.cpp#L144
   
   
在使用parallel_channel时,如果没有设置call_mapper,表示request是完全相同的,在调用用CallMethod时先进行request的序列化,然后初始化SubDone时,在ApplyClientSettings的同时,使用事先序列化好的request直接给Controller的_request_buf赋值(这里如果改造成一个shared_ptr)可以减少很多次重复的工作,
 在request比较复杂的时候可以节约一些cpu,这么做是可以的吗? 
   
   
   **Describe alternatives you've considered (描述你想到的折衷方案)**
   
   
   **Additional context/screenshots (更多上下文/截图)**
   
   


-- 
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