mirror of
https://github.com/danbulant/oxc
synced 2026-05-25 04:42:10 +00:00
2 related changes to lexer's `read_next_token()`: 1. Hint to branch predictor that unicode identifiers and non-standard whitespace are rare by marking that branch `#[cold]`. 2. The branch is on whether next character is ASCII or not. This check only requires reading 1 byte, as ASCII characters are always single byte in UTF8. So only do the work of getting a `char` in the cold path, once it's established that character is not ASCII and this work is required. |
||
|---|---|---|
| .. | ||
| examples | ||
| src | ||
| Cargo.toml | ||