lhotari opened a new pull request #9735: URL: https://github.com/apache/pulsar/pull/9735
### Motivation `String.format` is consuming most CPU when generating metrics:  ([Flamegraph from Pulsar user](https://apache-pulsar.slack.com/archives/C5Z4T36F7/p1614331656110600?thread_ts=1614293057.103600&cid=C5Z4T36F7)) ### Modifications Replace the usage of `String.format` with usage of `StringBuilder` and thread local cached `DecimalFormat`. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: [email protected]
