ignite-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Ozerov (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (IGNITE-2336) Avoid varargs where possible
Date Thu, 04 Feb 2016 10:33:39 GMT

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

Vladimir Ozerov reassigned IGNITE-2336:
---------------------------------------

    Assignee: Vladimir Ozerov

> Avoid varargs where possible
> ----------------------------
>
>                 Key: IGNITE-2336
>                 URL: https://issues.apache.org/jira/browse/IGNITE-2336
>             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 ~400 places in core module where varargs are used. But in most cases we either:
> 1) Always pass 1 element
> 2) Always pass 2 elements
> 3) Pass several constant elements
> Thus, we can do the following:
> 1) Remove varargs where only one element is passed.
> 2) Use predefined array constants instead of varargs where possible.
> This should decrease memory pressure.



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

Mime
View raw message