Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
2.7.1
-
None
-
None
Description
StringBuffers are used through the code, but in a way that reduces their performance below, perhaps, what normal String concatenation would be.
Doing
StringBuffer s = new StringBuffer();
s.append(a + b);
is the same as
StringBuffer s = new StringBuffer();
s.append(new StringBuffer(a).append(b).toString());
So, don't do normal concatentation in an append call, since one went to the trouble to use StringBuffer's in the first place.