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

Optimize Timestamp varint decoding

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.11.0
    • Component/s: None
    • Labels:
      None

      Description

      In looking at a profile with some delta reads, I noticed ~11% of CPU going to GetMemcmpableVarint, much of which is from Timestamp decoding. In practice, any timestamp from HybridClock will need an 8-byte varint, so we can fast-path that case. (unfortunately it's too much effort to change the data format to not use a varint here)

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: