News for hackers. Stuff that matters.
Re:Java StringBuffer and StringBuilder performance by mcguire on Monday June 13, 2016 @09:31PM (#11899153)
StringBuffer doesn't actually give you any useful safety guarantees. If your program has threading bugs, a mangled string builder is probably the least of the problems.

Thread safety isn't something you build up from tread safe components. It has to be designed in from the top.

Further, almost all string builder uses are trivially thread safe.

There are no comments on this comment yet.