Re:Java StringBuffer and StringBuilder performance
by Tharkun on Monday June 13, 2016 @02:10PM
(#11895896)
That's nonsense. I can't think of any realistic examples in which it would be useful for multiple threads to write to the same StringBuffer.
You might as well sprinke random and pointless synchronized blocks around your code. The magical synchronization fairy will give you a false sense of correctness.
You might as well sprinke random and pointless synchronized blocks around your code. The magical synchronization fairy will give you a false sense of correctness.