Skip to content

Optimize saslprep by checking if input is only ASCII printable characters #1

@xdg

Description

@xdg

If the characters in the input string are all ASCII printable (0x20 - 0x7E), then checking every rune for mapping/prohibition/etc. is unnecessary and expensive. At the cost of an additional pass over the string, this common case can be made much faster.

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