Commits
Click on a commit to change the comparison rangeperf(parser): optimize `Lexer::hex_digit` (#4572)
Optimize `Lexer::hex_digit`.
Rather than checking for `A-F` and `a-f` separately, can check for them both in one go. `b'A' | 32 == b'a'` (and same for all other alphabetic letters) so matching against `b | 32` allows checking for all matching letters, lower or upper case, in one operation.1 year ago
by overlookmotel