[
https://issues.apache.org/jira/browse/HIVE-21297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Zoltan Haindrich updated HIVE-21297:
------------------------------------
Resolution: Fixed
Status: Resolved (was: Patch Available)
pushed to master. Thank you [~isuller]!
> 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)