about summary refs log tree commit diff
path: root/compiler/rustc_serialize/src
diff options
context:
space:
mode:
authorMark Rousskov <mark.simulacrum@gmail.com>2024-01-09 18:40:00 -0500
committerMark Rousskov <mark.simulacrum@gmail.com>2024-01-09 20:08:44 -0500
commit5e8f67bbc9017cc02338e959ca49f5355ff22f07 (patch)
tree7e72bf7147157b30d2bb405e181524edd40f9d56 /compiler/rustc_serialize/src
parent190f4c96116a3b59b7de4881cfec544be0246d84 (diff)
downloadrust-5e8f67bbc9017cc02338e959ca49f5355ff22f07.tar.gz
rust-5e8f67bbc9017cc02338e959ca49f5355ff22f07.zip
u8 tags for smaller enums
100% of the serialized enums during libcore compilation fit into the
smaller tag, and this eliminates hitting the leb128 code for
coding/decoding when we can statically guarantee that's not required.

30% of all leb128 integers serialized in libcore (12981183 total) come
from the usize's removed here.
Diffstat (limited to 'compiler/rustc_serialize/src')
0 files changed, 0 insertions, 0 deletions