oxc/crates/oxc_parser
overlookmotel 408acb90e6
refactor(parser): lexer handle unicode without branch (#2039)
As suggested by @strager in
https://github.com/oxc-project/oxc/pull/2025#pullrequestreview-1820273832,
this PR adds `BYTE_HANDLERS` for first bytes of unicode characters.

This removes a branch from `read_next_token()` and produces a +1%
speed-up on parser benchmarks.
2024-01-16 13:14:22 +08:00
..
examples chore(clippy): enable undocumented_unsafe_blocks 2023-10-16 15:18:14 +08:00
src refactor(parser): lexer handle unicode without branch (#2039) 2024-01-16 13:14:22 +08:00
Cargo.toml perf(parser): lexer byte handlers consume ASCII chars faster (#2046) 2024-01-16 12:31:45 +08:00