Description
Calling repeatedly append requires ensuring the capacity amongst other.
Appends to the string builder can be done for all previous chars when a line delimiter is encountered, thus reducing the cost of the operation.
Gain: 66%
Attached are the flame graphs:
- Before
- After (Combined with
MIME4J-304andMIME4J-305)