You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "Ivan Suller (JIRA)" <ji...@apache.org> on 2019/02/20 09:28:00 UTC

[jira] [Created] (HIVE-21297) Replace all occurences of new Long, Boolean, Double etc with the corresponding .valueOf

Ivan Suller created HIVE-21297:
----------------------------------

             Summary: 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
             Fix For: 4.0.0


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)