You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ignite.apache.org by "Vladimir Ozerov (JIRA)" <ji...@apache.org> on 2015/12/25 15:15:49 UTC

[jira] [Assigned] (IGNITE-2273) Arrays.asList() should not be used to 1- and 2- elements.

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

Vladimir Ozerov reassigned IGNITE-2273:
---------------------------------------

    Assignee: Vladimir Ozerov

> Arrays.asList() should not be used to 1- and 2- elements.
> ---------------------------------------------------------
>
>                 Key: IGNITE-2273
>                 URL: https://issues.apache.org/jira/browse/IGNITE-2273
>             Project: Ignite
>          Issue Type: Sub-task
>          Components: general
>    Affects Versions: ignite-1.4
>            Reporter: Vladimir Ozerov
>            Assignee: Vladimir Ozerov
>             Fix For: 1.6
>
>
> There are several places in code where Arrays.asList is used as follows:
> 1) For a single element. These places should be replaced with Collections.singleton() to avoid unnecessary array allocations.
> 2) For two elements. Here we should create our own "doubled-singleton" implementation.
> Some of these places are located on hot code paths (e.g. cache PUT).



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