Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoid duplicate toCode calls in multiple Char.is... functions #1146

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Commits on Jul 30, 2024

  1. Avoid duplicate toCode calls in multiple Char.is... functions

    This reduces the number of calls to `toCode char`. For instance, in the
    isAlphaNum function, the char argument would be converted to a char up
    to 3 times (once in isLower, isUpper and isDigit).
    This makes it so that the conversion is done at most once, improving
    performance of the functions.
    jfmengels committed Jul 30, 2024
    Configuration menu
    Copy the full SHA
    76f9dc5 View commit details
    Browse the repository at this point in the history