Benoit Tellier created MIME4J-306: ------------------------------------- Summary: MimeUtil::unfold should group char appends Key: MIME4J-306 URL: https://issues.apache.org/jira/browse/MIME4J-306 Project: James Mime4j Issue Type: Improvement Components: core Affects Versions: 0.8.5 Reporter: Benoit Tellier Fix For: 0.8.6
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-304 and MIME4J-305) -- This message was sent by Atlassian Jira (v8.3.4#803005)