Guiqu1aixi opened a new pull request, #9427: URL: https://github.com/apache/rocketmq/pull/9427
I think there is no significant difference between logging a warning every 1000 times versus every 1024 times. However, changing 1000 to 1024 allows replacing the modulo operation with a bitwise and operation, which can achieve a performance optimization in every calculation cycle. 中文:每1000次记录一次警告和每1024次之间没有显著差异,但改为1024次后可以用位与操作代替取模运算,从而在每次计算周期中优化性能 -- 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]
