Java by Petr Sladek
StringBuilder
or StringBuffer
StringBuffer
is synchronized, StringBuilder
is not.
StringBuilder
is faster than StringBuffer
because it’s not synchronized.
The speed-up for StringBuilder
is probably about two times faster than StringBuffer
.