frankjkelly opened a new issue, #1378:
URL: https://github.com/apache/pulsar-client-go/issues/1378

   Noticed this during a flamegraph analysis of our code
   
   
![Image](https://github.com/user-attachments/assets/d8e0f0a7-999b-4023-8459-76cbdaba241f)
   
   Looks like `fmt.Sprintf` is pretty expensive for CPU usage? Especially for 
Debug logging.
   
   
https://github.com/apache/pulsar-client-go/blob/a5c6dee1af2d693a7db40720b436d05d1228ab51/pulsar/log/wrapper_slog.go#L51-L65
   
   


-- 
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.apache.org

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

Reply via email to