I am just curious about the implementation of c++ string +=.
Is there any performance penalty for this? Which one is supposed to be faster?
String a = "xxx";
a += "(" + "abcd" + ")"
or
String a = "xxx";
a.append("(");
a.append("abcd");
a.append(")");