commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cédrik LIME (JIRA) <j...@apache.org>
Subject [jira] Created: (EMAIL-60) Performance in HtmlEmail#setMsg(String msg)
Date Tue, 24 Oct 2006 09:42:16 GMT
Performance in HtmlEmail#setMsg(String msg)
-------------------------------------------

                 Key: EMAIL-60
                 URL: http://issues.apache.org/jira/browse/EMAIL-60
             Project: Commons Email
          Issue Type: Improvement
    Affects Versions: 1.0 Final
            Reporter: Cédrik LIME
            Priority: Minor


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)

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

       

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org


Mime
View raw message