Uploaded image for project: 'Commons Email'
  1. Commons Email
  2. EMAIL-60

Performance in HtmlEmail#setMsg(String msg)

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0
    • Fix Version/s: 1.1
    • Labels:
      None

      Description

      The method HtmlEmail.setMsg(String) builds an HTML message from a text message using a StringBuffer. This StringBuffer should be correctly sized according to inputted message, to avoid unnecessary resizing:
      138c138
      < new StringBuffer()

      > new StringBuffer(msg.length() + 37)

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              cedrik.lime@gmail.com Cédrik LIME
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: