Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-6866

[Java] Improve the performance of calculating hash code for struct vector

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 0.16.0
    • Java

    Description

      Improve the performance of hashCode(int) method for StructVector:
      1. We can get the child vectors directly, so there is no need to get the name from the child vector and then use the name to get the vector.
      2. The child vectors cannot be null, so there is no need to check it.

      The performance improvement depends on the complexity of the hash algorithm. For computational intensive hash algorithms, the improvement can be small; while for simple hash algorithms, the improvement can be notable.

      Attachments

        Issue Links

          Activity

            People

              fan_li_ya Liya Fan
              fan_li_ya Liya Fan
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h 20m
                  1h 20m