Skip to content

Support for case-insensitive search #217

Description

@neilconway

Is there any interest in supporting (ASCII-only) case-insensitive substring search in memchr? If so, I'd be happy to propose a candidate API and do the implementation work.

Context / motivation: Apache DataFusion and arrow-rs use memchr to implement SQL constructs such as LIKE '%foo', with great performance (thanks for your work on memchr!). Another widely used SQL construct is ILIKE (case insensitive search), which currently has to be implemented via regex. If memchr was extended to support SIMD-accelerated case-insensitive search for ASCII strings, we'd be able to accelerate ILIKE significantly (roughly 2-3x over the regex-based implementation).

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