hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "stack (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-11499) AsyncProcess.buildDetailedErrorMessage concatenates strings using + in a loop
Date Mon, 14 Jul 2014 04:50:04 GMT

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

stack updated HBASE-11499:
--------------------------

       Resolution: Fixed
    Fix Version/s: 2.0.0
         Assignee: Mike Drob
     Hadoop Flags: Reviewed
           Status: Resolved  (was: Patch Available)

Committed to master.  Thanks for the patch [~mdrob]

> 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
>            Assignee: Mike Drob
>            Priority: Trivial
>              Labels: findbugs
>             Fix For: 2.0.0
>
>         Attachments: HBASE-11499.patch.txt, HBASE-11499.v2.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)

Mime
View raw message