You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Billy Liu (JIRA)" <ji...@apache.org> on 2018/01/27 15:17:00 UTC

[jira] [Resolved] (KYLIN-3144) Adopt Collections.emptyList() for empty list values

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

Billy Liu resolved KYLIN-3144.
------------------------------
       Resolution: Fixed
    Fix Version/s: v2.3.0

Commit: https://github.com/apache/kylin/commit/87a0058d9188d4e1140470e0df260548ade097a1

> Adopt Collections.emptyList() for empty list values
> ---------------------------------------------------
>
>                 Key: KYLIN-3144
>                 URL: https://issues.apache.org/jira/browse/KYLIN-3144
>             Project: Kylin
>          Issue Type: Improvement
>            Reporter: Ted Yu
>            Assignee: jiatao.tao
>            Priority: Minor
>             Fix For: v2.3.0
>
>
> Use Collection.emptyList() for returning an empty list instead of returning new ArrayList<>().
> The default constructor creates a buffer of size 10 for ArrayList . Therefore, returning this static value saves some memory and lessens GC pressure.
> One candidate for replacement is in HybridService#listHybrids()



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)