cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Crockett (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-7280) Avoid unnecessary string allocation in IOUtils::toString
Date Sun, 12 Mar 2017 12:13:04 GMT
Steven Crockett created CXF-7280:
------------------------------------

             Summary: Avoid unnecessary string allocation in IOUtils::toString
                 Key: CXF-7280
                 URL: https://issues.apache.org/jira/browse/CXF-7280
             Project: CXF
          Issue Type: Improvement
            Reporter: Steven Crockett
            Priority: Trivial


When buidling up the string representation, currently the array of read characters is copied
into a string before being appended to the string buffer. With a stringbuilder it can take
a char array and copy directly into it's internal buffer, avoiding the intermediate string.

*first contribution to this, or any Apache project, so not sure if this needs to be categorised
better.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message