Re:Java StringBuffer and StringBuilder performance
by stickfigure on Monday June 13, 2016 @02:00PM
(#11895805)
The only sane way to write multithreaded code is to assume all libraries are not thread-safe unless explicitly declared as such, and to carefully manage critical sections. There's no point in "defaulting" to threadsafe libraries; just because you use StringBuffer does not mean your code is threadsafe. If you don't understand your critical sections, you're almost certainly screwing up.
[ Parent
| on HN ]
There are no comments on this comment yet.