oxc/crates/oxc_sourcemap
overlookmotel ff43dff99d perf(sourcemap): speed up VLQ encoding (#4633)
Speed up source map VLQ encoding by removing a couple of operations from `serialize_mappings`'s hot loop.

On a local benchmark of just VLQ encoding, this change produces 5% performance increase (benchmarked on MacBook Pro M1).
2024-08-05 01:34:59 +00:00
..
src perf(sourcemap): speed up VLQ encoding (#4633) 2024-08-05 01:34:59 +00:00
Cargo.toml Release crates v0.23.0 (#4595) 2024-08-01 16:55:41 +08:00
CHANGELOG.md Release crates v0.23.0 (#4595) 2024-08-01 16:55:41 +08:00
README.md feat: add oxc sourcemap crate (#2825) 2024-03-28 19:36:38 +08:00

The sourcemap implement port from rust-sourcemap, but has some different with it.

  • Encode sourcemap at parallel, including quote sourceContent and encode token to vlq mappings.
  • Avoid Sourcemap some methods overhead, like SourceMap::tokens().