yockie opened a new issue #1300:
URL: https://github.com/apache/incubator-brpc/issues/1300


   **Is your feature request related to a problem? (你需要的功能是否与某个问题有关?)**
   据我周知,一次rpc结束(SendRpcResponse)会delete 
Controller(默认),在Controller的析构函数中,会将_session_local_data归还至server的_session_local_data_pool:
   _server->_session_local_data_pool->Return(_session_local_data);
   
   
我现在遇到的问题是,我们的程序中_session_local_data每次使用会直接或间接的申请较大空间。根据打点显示,每次新的rpc进入service函数时对_session_local_data的reset的时间花费较大,影响整体平响。
   
   **Describe the solution you'd like (描述你期望的解决方法)**
   如何在rpc结束后,_session_local_data规划至pool前,先做reset操作,避免reset时间占用新的rpc时间。
   
   **Describe alternatives you've considered (描述你想到的折衷方案)**
   如果brpc框架不想做,能否提供自定义的接口让用户可以在rpc结束后做类似的清理工作。
   
   多谢!


----------------------------------------------------------------
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:
[email protected]



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

Reply via email to