diff options
| author | Mark Rousskov <mark.simulacrum@gmail.com> | 2023-12-25 11:49:51 -0500 |
|---|---|---|
| committer | Mark Rousskov <mark.simulacrum@gmail.com> | 2023-12-27 07:31:38 -0500 |
| commit | 9c5293c27b39be486b6e4b837d18d460600e9c13 (patch) | |
| tree | d5a01ca920e6024ceb76c9480e58c12e9f6547e4 /compiler/rustc_mir_transform/src/coverage/graph.rs | |
| parent | 71696e516db31bc3674ba3461ba85e3e0d5bcbe5 (diff) | |
| download | rust-9c5293c27b39be486b6e4b837d18d460600e9c13.tar.gz rust-9c5293c27b39be486b6e4b837d18d460600e9c13.zip | |
Support relative offsets when encoding spans
The relative offset is often smaller than the absolute offset, and with the LEB128 encoding, this ends up cutting the overall metadata size considerably (~1.5 megabytes on libcore). We can support both relative and absolute encodings essentially for free since we already take a full byte to differentiate between direct and indirect encodings (so an extra variant is quite cheap).
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/graph.rs')
0 files changed, 0 insertions, 0 deletions
