oxc/crates/oxc_parser
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
..
examples chore(parser): print both AST and errors in examples/parser 2024-02-26 23:20:46 +08:00
src refactor(parser): simplify byte_search macro (#2552) 2024-03-01 21:07:39 +08:00
Cargo.toml Publish crates v0.8.0 2024-02-26 19:01:51 +08:00