oxc/crates/oxc_codegen
overlookmotel b7f5c63833
perf(codegen): speed up generating sourcemap mappings (#2597)
This PR optimizes the `update_generated_line_and_column` function used in generating source maps.

The main change is that `generated_column` only depends on the last line, so just spin through bytes to find the last line break, and then only convert last line UTF-8 to UTF-16. There's also a fast path for when last line is ASCII, to avoid iterating over the last line twice in that common case.
2024-03-04 12:46:32 +08:00
..
examples feat(codegen): add sourcemap (#2565) 2024-03-03 14:44:49 +08:00
src perf(codegen): speed up generating sourcemap mappings (#2597) 2024-03-04 12:46:32 +08:00
tests feat(Codegen): Improve codegen (#2460) 2024-02-21 14:41:57 +08:00
Cargo.toml chore(deps): update rust crates (#2589) 2024-03-04 11:23:06 +08:00