Uploaded image for project: 'Kudu'
  1. Kudu
  2. KUDU-2847

Optimize iteration over selection vector in SerializeRowBlock

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.11.0
    • Component/s: perf, tserver
    • Labels:
      None

      Description

      Currently, SerializeRowBlock operates column-by-column, which means we have to iterate over the selection bitmap once for each column. This code isn't particularly well optimized – in TPCH Q6, about 10% of CPU is spent in BitmapFindFirst. We should look at alternate implementations here that better amortize the bitmap iteration cost across all of the columns and generally micro-optimize it.

        Attachments

          Activity

            People

            • Assignee:
              ZhangYao ZhangYao
              Reporter:
              tlipcon Todd Lipcon
            • Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: