michaeljmarshall opened a new pull request, #20499:
URL: https://github.com/apache/pulsar/pull/20499

   ### Motivation
   
   Minor optimization for metrics generation in functions. String concatenation 
is faster than string format. This is valuable in the context of metrics where 
we can generate many strings in a tight loop.
   
   ### Modifications
   
   * Replace `String.format` with string concatenation in several locations.
   * Only create metrics prefix once.
   
   ### Verifying this change
   
   This change is a trivial rework / code cleanup without any test coverage.
   
   ### Documentation
   
   - [x] `doc-not-needed` 


-- 
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: commits-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to