diff options
| author | bors <bors@rust-lang.org> | 2024-01-11 13:11:57 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2024-01-11 13:11:57 +0000 |
| commit | 68acb393c5d2cff049b41981e35217a7e630f63a (patch) | |
| tree | 514dbef9094cf2af59239686db5756ba4dcfe779 /library/std/src/sys/sgx/stdio.rs | |
| parent | d73bd3fb3ba312f3e6b5af4d56d1161d37b71620 (diff) | |
| parent | 1d2005be71431f9a870fd347516ff2317c1d37a3 (diff) | |
| download | rust-68acb393c5d2cff049b41981e35217a7e630f63a.tar.gz rust-68acb393c5d2cff049b41981e35217a7e630f63a.zip | |
Auto merge of #119791 - Mark-Simulacrum:cut-leb128, r=cjgillot
Remove a large amount of leb128-coded integers This removes ~41%[^1] of the leb128-encoded integers serialized during libcore compilation by changing enum tags to opportunistically use `u8` where feasible instead of the leb128 coding via `usize`. This should have effectively zero impact on metadata file sizes, since almost all or all enum tags fit into the 7 bits available in leb128 for single-byte encodings. Perf results indicate this is basically neutral across the board except for an improvement in bootstrap time. [^1]: More than half the remaining integers still fit into <= 128, so the leb128 coding still makes sense. 32% are zero, and 46% are <= 4.
Diffstat (limited to 'library/std/src/sys/sgx/stdio.rs')
0 files changed, 0 insertions, 0 deletions
