You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@kylin.apache.org by "Ted Yu (JIRA)" <ji...@apache.org> on 2018/01/02 04:12:03 UTC
[jira] [Created] (KYLIN-3144) Adopt Collections.emptyList() for
empty list values
Ted Yu created KYLIN-3144:
-----------------------------
Summary: 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
Priority: Minor
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
(v6.4.14#64029)