Should I use Java’s String.format() if performance is important?

We have to build Strings all the time for log output and so on. Over the JDK versions we have learned when to use StringBuffer (many appends, thread safe) and StringBuilder (many appends, non-thread-safe). What’s the advice on using String.format()? Is it efficient, or are we forced to stick with concatenation for one-liners where performance … Read more