mirror of
https://github.com/danbulant/oxc
synced 2026-05-22 13:48:55 +00:00
In source map VLQ encoding, keep local copy of previous `Token`, rather than looking up up from `tokens`. On a local benchmark of just VLQ encoding, this change produces 6% 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().