You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/04/10 13:47:31 UTC

[GitHub] [rocketmq] MatrixHB commented on pull request #4138: `RemotingCommand` is not thread-safe

MatrixHB commented on PR #4138:
URL: https://github.com/apache/rocketmq/pull/4138#issuecomment-1094278530

   Why not use ConcurrentHashMap instead of HashMap?Using ConcurrentHashMap, no need to lock when reading, and the scope of locking is small when writing.


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org