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-21297) Replace all occurences of new Long, Boolean, Double etc with the corresponding .valueOf
Date Fri, 22 Feb 2019 08:24:00 GMT

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

Ivan Suller updated HIVE-21297:
-------------------------------
    Attachment: HIVE-21297.02.patch

> Replace all occurences of new Long, Boolean, Double etc with the corresponding .valueOf
> ---------------------------------------------------------------------------------------
>
>                 Key: HIVE-21297
>                 URL: https://issues.apache.org/jira/browse/HIVE-21297
>             Project: Hive
>          Issue Type: Improvement
>            Reporter: Ivan Suller
>            Assignee: Ivan Suller
>            Priority: Trivial
>             Fix For: 4.0.0
>
>         Attachments: HIVE-21297.01.patch, HIVE-21297.02.patch
>
>
> Creating new objects with new Long(...), new Boolean etc creates a new object, while
Long.valueOf(...), Boolean.valueOf(...) can be cached (and is actually cached in most if not
all JVMs) thus reducing GC overhead. I already had two similar tickets (HIVE-21228, HIVE-21199)
- this one finishes the job.



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

Mime
View raw message