Skip to content

[C++] Faster ascii_lower and ascii_upper #25242

@asfimport

Description

@asfimport

The current version is using a lookup table for doing the case conversion. Using http://quick-bench.com/JaDErmVCY23Z1tu6YZns_KBt0qU it seems using a boolean check and +/-32 seems ~5x times faster (4.6x for clang 9, 6.4x for GCC  9.2).

 

Reporter: Maarten Breddels / @maartenbreddels
Assignee: Maarten Breddels / @maartenbreddels

Related issues:

PRs and other links:

Note: This issue was originally created as ARROW-9131. Please see the migration documentation for further details.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions