Skip to content

[Performance] Use SMID instruction to speed up the page decode of PlainPage and DictPage  #6088

Description

@HappenLee

Motivation

Now, When we run ssb test for doris. See the CPU Perf find:
image

There is plenty of CPU compute in page decode of PlainPage and DictPage

try to see the detail, we find there are many of mem allocate in dispose the BitUtil::RoundUpToPowerOf2
image

Implementation

Obvious, we can use the SMID to speed up the function BitUtil::RoundUpToPowerOf2

After use SSE to speed up the function, the perf show CPU cost:

image

no vectorizedvectorized
DictPage23.42%14.82%
PlainPage23.38%11.93%

3. More Test In SSB

image

We can find q4,q5,q6,q8,q9,q11 improve about 20%

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions