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

reduce the usage of HashMap and List.iterator.

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None

      Description

      HashMap is used in a lot of places in Hive. Most times we can just replace it with native array. List.iterator() give a lot of pressure to Java GC, we should avoid it.
      Another thing we can also try here is to replace GroupByOperator's HashMap look up by not using the ObjectInspectorUtils.compare(). Instead, We can try here is to first serialize the keys and use the serialized bytes to do the comparison.

        Issue Links

          Activity

          There are no comments yet on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              he yongqiang He Yongqiang
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:

                Development