[
https://issues.apache.org/jira/browse/HIVE-21297?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ivan Suller updated HIVE-21297:
-------------------------------
Description: 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. (was: 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.)
> 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
>
>
> 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)