Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.10.0
-
None
Description
I found some improved code in CompactingHashTable.java since this code will execute many times when flink runs.
In my opinion, some codes in "for" and "while" can be optimized to reduce the times of execution and it is effective to increase the performance.
For example, the code following:
'while(numBuckets % numPartitions != 0)
'
can be optimized into a formula:
numBuckets += numPartitions - (numBuckets % numPartitions);