Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-2534

Improve execution code in CompactingHashTable.java

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.10.0
    • 0.10.0
    • Runtime / Task
    • 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)

      { numBuckets++; }

      '
      can be optimized into a formula:
      numBuckets += numPartitions - (numBuckets % numPartitions);

      Attachments

        Activity

          People

            Unassigned Unassigned
            huangwei Huang Wei
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 168h
                168h
                Remaining:
                Remaining Estimate - 168h
                168h
                Logged:
                Time Spent - Not Specified
                Not Specified