David Mollitor created ORC-841: ---------------------------------- Summary: Remove Superfluous Array Fill in StringHashTableDictionary Key: ORC-841 URL: https://issues.apache.org/jira/browse/ORC-841 Project: ORC Issue Type: Improvement Reporter: David Mollitor Assignee: David Mollitor
{code:java|title=StringHashTableDictionary.java} private void doResize(int newCapacity, int oldCapacity) { // ... Arrays.fill(hashBuckets, null); hashBuckets = resizedHashBuckets; } {code} No need to waste time null-out of {{hashBuckets}}. {{hashBuckets}} is overwritten and the Java GC will clean it up, and by extension, all of its elements. -- This message was sent by Atlassian Jira (v8.3.4#803005)