You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2017/03/13 10:56:04 UTC

[jira] [Resolved] (CXF-7280) Avoid unnecessary string allocation in IOUtils::toString

     [ https://issues.apache.org/jira/browse/CXF-7280?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colm O hEigeartaigh resolved CXF-7280.
--------------------------------------
    Resolution: Fixed

Thanks for the patch.

> 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
>            Assignee: Colm O hEigeartaigh
>            Priority: Trivial
>             Fix For: 3.2.0, 3.1.11
>
>
> 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)