oxc/crates
overlookmotel 34ecdd58d8
refactor(parser): simplify byte_search macro (#2552)
This PR greatly simplifies the `byte_search!` macro.

Mainly removing `cold_branch()` from the "not enough bytes remaining for a batch" branch, which allows refactoring so that `handle_match` and `continue_if` don't need to be repeated twice.

Result for performance is inconsistent - a little better on some benchmarks, a little worse on others. But not by significant amounts either way. In my view, the benefit of making the macro simpler outweighs a small speed loss anyway.
2024-03-01 21:07:39 +08:00
..
oxc Publish crates v0.8.0 2024-02-26 19:01:51 +08:00
oxc_allocator Publish crates v0.8.0 2024-02-26 19:01:51 +08:00
oxc_ast fix(ast): missing visit JSXElementName enum (#2547) 2024-03-01 21:03:14 +08:00
oxc_cli feat(cli,linter): provide tsconfig path from the cli (#2526) 2024-02-27 20:00:11 +08:00
oxc_codegen feat(ast): add "abstract" type to MethodDefinition and PropertyDefinition (#2536) 2024-02-28 17:33:11 +08:00
oxc_diagnostics Publish crates v0.8.0 2024-02-26 19:01:51 +08:00
oxc_index Publish crates v0.8.0 2024-02-26 19:01:51 +08:00
oxc_js_regex [BREAKING CHANGE] Change Atom to Atom<'a> to make it safe (#2497) 2024-02-26 19:34:40 +08:00
oxc_language_server fix(vscode): incorrect diagnostic position (#2461) 2024-02-21 12:11:16 +08:00
oxc_linter refactor(semantic/jsdoc): Misc fixes for JSDoc related things (#2531) 2024-02-29 17:28:14 +08:00
oxc_macros feat(linter): remove the --timings feature (#2049) 2024-01-16 14:21:04 +08:00
oxc_minifier refactor(span): move base54 method to mangler (#2523) 2024-02-27 13:34:33 +08:00
oxc_parser refactor(parser): simplify byte_search macro (#2552) 2024-03-01 21:07:39 +08:00
oxc_prettier feat(ast): add "abstract" type to MethodDefinition and PropertyDefinition (#2536) 2024-02-28 17:33:11 +08:00
oxc_semantic refactor(semantic/jsdoc): Misc fixes for JSDoc related things (#2531) 2024-02-29 17:28:14 +08:00
oxc_span refactor(span): remove AtomImpl (#2525) 2024-02-27 13:45:58 +08:00
oxc_syntax feat(linter): remove all commonjs logic for import plugin (#2537) 2024-02-28 18:13:44 +08:00
oxc_transformer feat(ast): add "abstract" type to MethodDefinition and PropertyDefinition (#2536) 2024-02-28 17:33:11 +08:00
oxc_wasm feat(wasm): call build module record when symbol is true (#2533) 2024-02-28 14:47:34 +08:00