guodongxiaren opened a new pull request #1504:
URL: https://github.com/apache/incubator-brpc/pull/1504


   emplace/emplace_back 
替换掉push_back(std::make_pair(,))/insert(std::make_pair(,))
   
   emplace的性能略好于push_back(T&&) 和 insert(T&&)
   并且代码也更简洁
   
   可以参考:
   Effective modern C++ item 42: Consider emplacement instead of insertion.


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