XiaoyiPeng opened a new issue #3571:
URL: https://github.com/apache/rocketmq/issues/3571


   **BUG REPORT**
   
   1. Please describe the issue you observed:
   
      For a big set, sequential iteration addition might be inefficient, in 
class `StoreStatsService` as shown below:
   
         ```java
            public long getPutMessageTimesTotal() {
                 long rs = 0;
                 for (LongAdder data : putMessageTopicTimesTotal.values()) {
                     rs += data.longValue();
                 }
                 return rs;
             }
         ```
        Renaming variables lockXXX to xxxLock may be better.(eg: 
`StoreStatsService#lockPut`)
        
   
   
   2. Please tell us about your environment:
      Mac OS Catalina
   
   


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


Reply via email to