hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ivan Suller (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HIVE-21228) Replace all occurences of new Integer with Integer.valueOf
Date Thu, 07 Feb 2019 10:53:00 GMT

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

Ivan Suller updated HIVE-21228:
-------------------------------
    Attachment: HIVE-21228.01.patch

> Replace all occurences of new Integer with Integer.valueOf
> ----------------------------------------------------------
>
>                 Key: HIVE-21228
>                 URL: https://issues.apache.org/jira/browse/HIVE-21228
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Ivan Suller
>            Assignee: Ivan Suller
>            Priority: Trivial
>         Attachments: HIVE-21228.01.patch
>
>
> Creating Integer objects with new Integer(...) creates a new object, while Integer.valueOf(...)
can be cached (and is actually cached in most if not all JVMs) thus reducing GC overhead.



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

Mime
View raw message