qianye1001 commented on issue #10400:
URL: https://github.com/apache/rocketmq/issues/10400#issuecomment-4561796503

   🤖 **PR Created**
   
   I've created a pull request to fix this issue: 
https://github.com/apache/rocketmq/pull/10401
   
   **Change:** Cache `Version.values()` in a static final field to eliminate 
repeated defensive-copy array allocations (~7.5KB per call, 943-element enum 
array × 6 calls in `getVersionDesc()` + `value2Version()`).
   
   Please review the changes.


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