Commons Email
  1. Commons Email
  2. EMAIL-60

Performance in HtmlEmail#setMsg(String msg)

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Minor 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)

      1. HtmlEmail.patch
        1 kB
        Ben Speakmon

        Activity

        Henri Yandell made changes -
        Fix Version/s 1.1 [ 12312230 ]
        Resolution Fixed [ 1 ]
        Status Open [ 1 ] Closed [ 6 ]
        Ben Speakmon made changes -
        Field Original Value New Value
        Attachment HtmlEmail.patch [ 12348029 ]
        Cédrik LIME created issue -

          People

          • Assignee:
            Unassigned
            Reporter:
            Cédrik LIME
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development