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 2021/08/05 08:27:09 UTC
[GitHub] [rocketmq] lfz757077613 opened a new pull request #3219: Use thread local random
lfz757077613 opened a new pull request #3219:
URL: https://github.com/apache/rocketmq/pull/3219
broker use `Math.abs(random.nextInt() % 99999999)` to choose a queue for message, which is not necessary
It can be replaced with `ThreadLocalRandom.current().nextInt(99999999)` for higher performance
--
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
[GitHub] [rocketmq] lfz757077613 closed pull request #3219: Use thread local random
Posted by GitBox <gi...@apache.org>.
lfz757077613 closed pull request #3219:
URL: https://github.com/apache/rocketmq/pull/3219
--
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
[GitHub] [rocketmq] lfz757077613 closed pull request #3219: Use thread local random
Posted by GitBox <gi...@apache.org>.
lfz757077613 closed pull request #3219:
URL: https://github.com/apache/rocketmq/pull/3219
--
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