merlimat commented on PR #3596:
URL: https://github.com/apache/bookkeeper/pull/3596#issuecomment-1298699740

   @hangc0276 the `log.debug("xxx {}", var)` is in many cases allocating 
objects on the heap for the variable arguments, even when the log level is info 
or above. Using the `if (log.isDebugEnabled()) {...}` avoids all allocations.


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

Reply via email to