Uploaded image for project: 'Hive'
  1. Hive
  2. HIVE-21199

Replace all occurences of new Byte with Byte.valueOf

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • None
    • 4.0.0-alpha-1
    • HiveServer2
    • None

    Description

      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.

      Attachments

        1. HIVE-21199.01.patch
          19 kB
          Ivan Suller
        2. HIVE-21199.02.patch
          19 kB
          Ivan Suller
        3. HIVE-21199.03.patch
          20 kB
          Ivan Suller
        4. HIVE-21199.04.patch
          20 kB
          Ivan Suller
        5. HIVE-21199.05.patch
          20 kB
          Ivan Suller

        Activity

          People

            isuller Ivan Suller
            isuller Ivan Suller
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: