-
Notifications
You must be signed in to change notification settings - Fork 360
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
Showing
1 changed file
with
28 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters