Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-12950

Improve performance of BytesToBytesMap

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.0.0
    • SQL
    • None

    Description

      When benchmark generated aggregate with grouping keys, the profiling show that lookup in BytesToBytesMap took about 90% of the CPU time, we should optimize it.

      After profiling with jvisualvm, here are the things that take most of the time:

      1. decode address from Long to baseObject and offset
      2. calculate hash code
      3. compare the bytes (equality check)

      Attachments

        Activity

          People

            davies Davies Liu
            davies Davies Liu
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: