> > Another way to fix this would be to use String concatenation. > The question > is, which is more expensive, the synchronization or the > String concatenation? >
yeah, that occurred to me too... anybody have an answer? > This is how the code would be with String concatenation: > > // Log this message, timestamped if necessary > if (writer != null) { > if (timestamp) { > writer.println(tsString + " " + msg); > } else { > writer.println(msg); > } > } > -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>