mirror of
https://github.com/danbulant/oxc
synced 2026-05-24 20:32:10 +00:00
Speed up lexing template strings. This was the last use of `AutoCow` remaining in the lexer, and it's now removed. Implementation is quite complex, to avoid repeatedly branching on whether an unescaped string is required or not (the way `AutoCow` did). I tried to simplify it down to a single function, but this hurt performance significantly. Benchmarks do not show much movement, but I believe that's because there aren't many template strings in the benchmarks. Where there are template strings, I believe this speeds up lexing them significantly. |
||
|---|---|---|
| .. | ||
| examples | ||
| src | ||
| Cargo.toml | ||