mirror of
https://github.com/oxc-project/oxc.git
synced 2026-09-14 19:36:11 +08:00
34a242e134
Use `Ident` in the property mangler. This reduces the `Set::contains` operation faster as the hashing doesn't happen. The property names are not always an "ident" so it may not make sense to use the `Ident` type. But currently the `Ident` type allows characters that are not allowed in identifiers so the code works. I used AI to generate the code and then reviewed the code and iterated a bit.
Benchmark
See https://codspeed.io/oxc-project/oxc
Locally
# On PR branch
cargo bench -p oxc_benchmark --bench parser -- --save-baseline pr
git checkout main
cargo bench -p oxc_benchmark --bench parser -- --save-baseline main
critcmp # via `cargo binstall critcmp`