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/01 09:15:00 UTC

[jira] [Created] (HIVE-21199) Replace all occurences of new Byte with Byte.valueOf

Ivan Suller created HIVE-21199:
----------------------------------

             Summary: Replace all occurences of new Byte with Byte.valueOf
                 Key: HIVE-21199
                 URL: https://issues.apache.org/jira/browse/HIVE-21199
             Project: Hive
          Issue Type: Improvement
          Components: HiveServer2
            Reporter: Ivan Suller


Creating Byte objects with new Byte(...) creates a new object, while Byte.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)