Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on A new log4j 2.0. Parent comment
log.Debug("Thing {0} happened", o.expensive_call())
could end up calling some method that took a very long time to run, only to be thrown away in the end. String construction isn't that big of a deal and their new API could avoiding doing it if the message won't be used.
There are no comments on this comment yet.
log.Debug("Thing {0} happened", o.expensive_call())
could end up calling some method that took a very long time to run, only to be thrown away in the end. String construction isn't that big of a deal and their new API could avoiding doing it if the message won't be used.