You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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...
The text was updated successfully, but these errors were encountered:
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...
The text was updated successfully, but these errors were encountered: