ignite-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vladimir Ozerov (JIRA)" <j...@apache.org>
Subject [jira] [Created] (IGNITE-2336) Avoid varargs where possible
Date Tue, 05 Jan 2016 11:11:39 GMT
Vladimir Ozerov created IGNITE-2336:

             Summary: 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
             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

View raw message