Details
-
Improvement
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
None
-
None
-
None
-
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.