oxc/crates
overlookmotel 60a927d8f5
perf(parser): lexer match byte not char (#2025)
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.
2024-01-14 18:50:11 +08:00
..
oxc Publish crates v0.5.0 2024-01-12 23:33:47 +08:00
oxc_allocator Publish crates v0.5.0 2024-01-12 23:33:47 +08:00
oxc_ast feat(ast): visit TSTypeQuery (#2021) 2024-01-14 00:38:18 +08:00
oxc_cli feat(linter): add support for same rule name but different plugin names (#1992) 2024-01-11 18:05:05 +08:00
oxc_codegen Publish crates v0.5.0 2024-01-12 23:33:47 +08:00
oxc_diagnostics Publish crates v0.5.0 2024-01-12 23:33:47 +08:00
oxc_index Publish crates v0.5.0 2024-01-12 23:33:47 +08:00
oxc_js_regex
oxc_language_server chore: remove DSL based linter plugin (#1985) 2024-01-11 04:54:39 +00:00
oxc_linter feat(linter): eslint-plugin-next: no-document-import-in-page (#1997) 2024-01-13 17:52:47 +00:00
oxc_macros
oxc_minifier Publish crates v0.5.0 2024-01-12 23:33:47 +08:00
oxc_parser perf(parser): lexer match byte not char (#2025) 2024-01-14 18:50:11 +08:00
oxc_prettier fix(prettier): Correctly print export declaration (#2014) 2024-01-13 21:26:33 +08:00
oxc_semantic feat(transformer/typescript): remove import if only have type reference (#2001) 2024-01-13 08:52:14 +00:00
oxc_span Publish crates v0.5.0 2024-01-12 23:33:47 +08:00
oxc_syntax feat(transformer/typescript): remove import if only have type reference (#2001) 2024-01-13 08:52:14 +00:00
oxc_transformer feat(transformer/typescript): remove export specifier that import_kind is type (#2015) 2024-01-13 21:25:59 +08:00
oxc_type_synthesis
oxc_wasm chore: remove DSL based linter plugin (#1985) 2024-01-11 04:54:39 +00:00