DebugLog icon indicating copy to clipboard operation
DebugLog copied to clipboard

StringBuffer?

Open Zordid opened this issue 9 years ago • 0 comments

It's a very well known fact, that one should not use StringBuffers. StringBuffers have a huge overhead for synchronization purposes that are not needed here. You should replace those with StringBuilders and even consider not using them at all.

If there are no loops, a simple String a = "Hello, "+ b+ "world!" internally uses a StringBuilder by itself without you worrying about it in the first place...

Zordid avatar Sep 04 '15 14:09 Zordid