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

Performance in HtmlEmail#setMsg(String msg)

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.0
    • 1.1
    • 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

        1. HtmlEmail.patch
          1 kB
          Ben Speakmon

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: