Skip to content

Dynamic CPU feature detection #48

@arpankapoor

Description

@arpankapoor

Would you consider a PR to add separate functions for XXH3 that choose the implementation at runtime using is_x86_feature_detected!/is_aarch64_feature_detected.

Since this would add a small overhead at runtime (an atomic store of the function pointer in a static variable on first invocation and an atomic load on every subsequent call), these new functions can be guarded behind a feature.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions