hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ted Yu (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-3701) revisit ArrayList creation
Date Sat, 26 Mar 2011 18:12:05 GMT

    [ https://issues.apache.org/jira/browse/HBASE-3701?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13011665#comment-13011665
] 

Ted Yu commented on HBASE-3701:
-------------------------------

I think these two lines in HConnectionManager.processBatchCallback() can use presize:
{code}
      List<Row> actions = new ArrayList<Row>();
      List<HServerAddress> addresses = new ArrayList<HServerAddress>();
{code}


> revisit ArrayList creation
> --------------------------
>
>                 Key: HBASE-3701
>                 URL: https://issues.apache.org/jira/browse/HBASE-3701
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: Ted Yu
>         Attachments: ArrayList.txt
>
>
> I am attaching the file which lists the files where ArrayList() is called without specifying
initial size.
> We should identify which calls should use pre-sizing to boost performance.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message