You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Mike Drob (JIRA)" <ji...@apache.org> on 2014/07/10 23:09:05 UTC

[jira] [Updated] (HBASE-11499) AsyncProcess.buildDetailedErrorMessage concatenates strings using + in a loop

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

Mike Drob updated HBASE-11499:
------------------------------

    Attachment: HBASE-11499.patch.txt

> AsyncProcess.buildDetailedErrorMessage concatenates strings using + in a loop
> -----------------------------------------------------------------------------
>
>                 Key: HBASE-11499
>                 URL: https://issues.apache.org/jira/browse/HBASE-11499
>             Project: HBase
>          Issue Type: Bug
>          Components: Client
>            Reporter: Mike Drob
>            Priority: Trivial
>              Labels: findbugs
>         Attachments: HBASE-11499.patch.txt
>
>
> The method is building a string using lots of concatenation, including in a loop, which will be {{O(n^2)}} because a new array will be allocated each time. Would be more efficient to use a StringBuilder for this.



--
This message was sent by Atlassian JIRA
(v6.2#6252)