"bla" + "blob" is a costly operation, basically to memcpy()s. String.format() as well in comparison. We don't want those operations performed if we don't end up using the result in a log statement. so the boolean check potentially saves us a lot of cpu cycles, especially in the debug() and trace() cases.
[ Full content available at: https://github.com/apache/cloudstack/pull/2829 ] This message was relayed via gitbox.apache.org for [email protected]
