Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf(sourcemap): shorten main loop encoding VLQ (#4586)
Reduce number of operations in main loop in source map VLQ encoding. #4583 made pushing a byte to output only 2 instructions, so that makes it workable to repeat `push_byte_unchecked` inside and outside the loop. On a local benchmark of just VLQ encoding shows this increases performance by 16% (on top of the 11% from #4583). Probably main gain is it makes a fast path for encoding `0`, which is common.
- Loading branch information