You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "michaeljmarshall (via GitHub)" <gi...@apache.org> on 2023/06/05 20:23:09 UTC

[GitHub] [pulsar] michaeljmarshall opened a new pull request, #20499: [improve][fn] Optimize string concatenation in user metrics gen

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-unsubscribe@pulsar.apache.org

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


[GitHub] [pulsar] michaeljmarshall merged pull request #20499: [improve][fn] Optimize string concatenation in user metrics gen

Posted by "michaeljmarshall (via GitHub)" <gi...@apache.org>.
michaeljmarshall merged PR #20499:
URL: https://github.com/apache/pulsar/pull/20499


-- 
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-unsubscribe@pulsar.apache.org

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