mirror of
https://github.com/danbulant/oxc
synced 2026-05-20 12:48:38 +00:00
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). |
||
|---|---|---|
| .. | ||
| src | ||
| Cargo.toml | ||
| CHANGELOG.md | ||
| README.md | ||
The sourcemap implement port from rust-sourcemap, but has some different with it.
- Encode sourcemap at parallel, including quote
sourceContentand encode token tovlqmappings. - Avoid
Sourcemapsome methods overhead, likeSourceMap::tokens().