Alonexc opened a new issue, #1723:
URL: https://github.com/apache/incubator-eventmesh/issues/1723

   ### Search before asking
   
   - [X] I had searched in the 
[issues](https://github.com/apache/eventmesh/issues?q=is%3Aissue) and found no 
similar issues.
   
   
   ### Enhancement Request
   
   
![image](https://user-images.githubusercontent.com/91315508/197137892-286084a2-1a5a-44e6-b035-06b61a198ef1.png)
   located at:
   
org/apache/eventmesh/runtime/admin/handler/ShowListenClientByTopicHandler.java 
71 74
   analysis and explanation:
   The method seems to be building a String using concatenation in a loop. In 
each iteration, the String is converted to a StringBuffer/StringBuilder, 
appended to, and converted back to a String. This can lead to a cost quadratic 
in the number of iterations, as the growing string is recopied in each 
iteration.
   
   ### Describe the solution you'd like
   
   Use the StringBuilder, append() method instead.
   
   ### Are you willing to submit PR?
   
   - [ ] Yes I am willing to submit a PR!


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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to