You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2017/01/21 07:00:33 UTC

[jira] [Commented] (HBASE-10699) Optimize some code; set capacity on arraylist when possible; use isEmpty; reduce allocations

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

stack commented on HBASE-10699:
-------------------------------

Also, thanks for aggregating.

> Optimize some code; set capacity on arraylist when possible; use isEmpty; reduce allocations
> --------------------------------------------------------------------------------------------
>
>                 Key: HBASE-10699
>                 URL: https://issues.apache.org/jira/browse/HBASE-10699
>             Project: HBase
>          Issue Type: Improvement
>            Reporter: @deprecated Yi Deng
>            Assignee: Jan Hentschel
>             Fix For: 2.0.0
>
>         Attachments: HBASE-10699.master.001.patch
>
>
> 1. Set capacity on ArrayList when possible
> 2. Use isEmpty instead of size() == 0 when possible
> 3. Reduce some unnecessary allocation



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)